/**
 * ==============================================================================
 * IWQ - HAUPTSTILBLATT (B2B DESIGN SYSTEM)
 * ==============================================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- RESET & BASICS --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ci-font-sans);
  background-color: var(--ci-bg-body);
  color: var(--ci-text-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--ci-transition);
}

/* --- TYPOGRAFIE --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--ci-text-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.75rem; margin-bottom: 1.25rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ci-text-muted);
  font-weight: 400;
  max-width: 760px;
}

.text-accent {
  color: var(--ci-text-accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--ci-radius-full);
  background-color: var(--ci-brand-accent-subtle);
  color: var(--ci-brand-accent);
  margin-bottom: 1rem;
}

/* --- LAYOUT & CONTAINER --- */
.container {
  width: 100%;
  max-width: var(--ci-container-width);
  margin: 0 auto;
  padding-left: var(--ci-container-padding);
  padding-right: var(--ci-container-padding);
}

.section {
  padding: 5rem 0;
}

.section-subtle {
  background-color: var(--ci-bg-surface);
  border-top: 1px solid var(--ci-border-light);
  border-bottom: 1px solid var(--ci-border-light);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.text-center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ci-border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 260px;
  display: block;
  object-fit: contain;
  transition: var(--ci-transition);
}

.brand-logo-img:hover {
  opacity: 0.92;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ci-brand-slate-blue);
  padding: 0.4rem 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ci-brand-primary);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--ci-brand-accent);
  border-radius: var(--ci-radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ci-text-heading);
}

.mobile-nav-cta {
  display: none;
}

/* --- BUTTONS (10% AKZENT-REGEL & CI) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--ci-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--ci-transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--ci-brand-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--ci-brand-primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--ci-shadow-card);
}

.btn-accent {
  background-color: var(--ci-brand-accent);
  color: #ffffff;
  font-weight: 700;
}

.btn-accent:hover {
  background-color: var(--ci-brand-accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 107, 90, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--ci-brand-primary);
  border-color: var(--ci-border-light);
}

.btn-outline:hover {
  background-color: #ffffff;
  border-color: var(--ci-brand-accent);
  color: var(--ci-brand-accent-hover);
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
}

/* --- HERO SECTION --- */
.hero {
  padding: 5.5rem 0 4.5rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--ci-bg-body) 100%);
  position: relative;
  overflow: hidden;
}

.hero-home {
  padding: 6.5rem 0 5.5rem;
  background-color: #ffffff;
  background-image: 
    linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.96) 42%, rgba(255, 255, 255, 0.7) 65%, rgba(255, 255, 255, 0.15) 85%, rgba(255, 255, 255, 0.05) 100%),
    url('../img/hero-header.jpg');
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-content {
  max-width: 690px;
  position: relative;
  z-index: 2;
}

.hero-home .hero-stats-bar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.5rem 1.75rem;
  border-radius: var(--ci-radius-lg);
  border: 1px solid var(--ci-border-light);
  box-shadow: var(--ci-shadow-subtle);
  margin-top: 2.5rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--ci-border-light);
  margin-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ci-brand-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--ci-text-muted);
}

/* --- KARTEN & GRIDS --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background-color: var(--ci-bg-surface);
  border-radius: var(--ci-radius-lg);
  border: 1px solid var(--ci-border-light);
  padding: 2.25rem;
  box-shadow: var(--ci-shadow-subtle);
  transition: var(--ci-transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ci-shadow-card);
  border-color: #cbd5e1;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--ci-radius-md);
  background-color: var(--ci-brand-accent-subtle);
  color: var(--ci-brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--ci-text-heading);
}

.card-text {
  color: var(--ci-text-body);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ci-brand-accent);
  margin-top: auto;
}

.card-link:hover {
  color: var(--ci-brand-accent-hover);
  gap: 0.6rem;
}

/* --- THEMEN-TABELLE (B2B WEITERBILDUNG) --- */
.table-wrapper {
  background: var(--ci-bg-surface);
  border: 1px solid var(--ci-border-light);
  border-radius: var(--ci-radius-lg);
  overflow: hidden;
  box-shadow: var(--ci-shadow-subtle);
  margin-top: 1.5rem;
}

.b2b-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.b2b-table th {
  background-color: var(--ci-bg-subtle);
  color: var(--ci-brand-primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--ci-border-light);
}

.b2b-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--ci-border-light);
  font-size: 0.95rem;
  vertical-align: top;
}

.b2b-table tr:last-child td {
  border-bottom: none;
}

.b2b-table tr:hover td {
  background-color: #fafbfc;
}

.topic-tag {
  font-weight: 700;
  color: var(--ci-brand-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- PROZESS- UND HIGHLIGHT-BOXEN --- */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.feature-icon {
  color: var(--ci-brand-accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* --- NOTICE BOX (IHSANPROJECTS & DISCLAIMER) --- */
.notice-box {
  background-color: var(--ci-bg-surface);
  border-left: 4px solid var(--ci-brand-accent);
  padding: 1.75rem;
  border-radius: 0 var(--ci-radius-md) var(--ci-radius-md) 0;
  box-shadow: var(--ci-shadow-subtle);
  margin: 2rem 0;
}

.notice-box.notice-community {
  border-left-color: var(--ci-brand-accent);
  background-color: var(--ci-brand-accent-subtle);
}

.notice-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ci-text-heading);
  margin-bottom: 0.4rem;
}

/* --- KONTAKTFORMULAR --- */
.form-card {
  background: var(--ci-bg-surface);
  border: 1px solid var(--ci-border-light);
  border-radius: var(--ci-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--ci-shadow-card);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--ci-text-heading);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--ci-border-light);
  border-radius: var(--ci-radius-md);
  background-color: #ffffff;
  color: var(--ci-text-heading);
  transition: var(--ci-transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ci-border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.radio-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.radio-pill-label {
  border: 1px solid var(--ci-border-light);
  border-radius: var(--ci-radius-md);
  padding: 0.85rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--ci-transition);
  font-size: 0.9rem;
  font-weight: 500;
}

.radio-pill-label:hover {
  border-color: #94a3b8;
  background-color: var(--ci-bg-subtle);
}

.radio-pill-input {
  accent-color: var(--ci-brand-accent);
}

.radio-pill-label.active {
  border-color: var(--ci-brand-accent);
  background-color: var(--ci-brand-accent-subtle);
  color: var(--ci-brand-primary);
  font-weight: 600;
}

/* --- FOOTER (30% DUNKELBLAU & CI-STRUKTUR) --- */
.site-footer {
  margin-top: auto;
  background-color: var(--ci-bg-dark);
  color: #cbd5e1;
  padding: 4.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .footer-logo-img {
  height: 40px;
  width: auto;
  max-width: 250px;
  margin-bottom: 1.25rem;
  display: block;
}

.footer-brand p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #94a3b8;
  max-width: 320px;
}

.footer-heading {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #cbd5e1;
  transition: var(--ci-transition);
}

.footer-links a:hover {
  color: var(--ci-brand-accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* --- ITZ SIEGEL (INITIATIVE TRANSPARENTE ZIVILGESELLSCHAFT) --- */
.itz-footer-box {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.itz-footer-badge {
  display: inline-block;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--ci-radius-md);
  padding: 0.5rem 0.85rem;
  transition: var(--ci-transition);
  max-width: 220px;
}

.itz-footer-badge:hover {
  background: #ffffff;
  border-color: var(--ci-brand-accent);
  box-shadow: 0 4px 12px rgba(255, 107, 90, 0.25);
  transform: translateY(-2px);
}

.itz-footer-badge img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--ci-radius-sm);
}

.itz-footer-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
}

.itz-footer-desc a {
  color: var(--ci-brand-accent);
  text-decoration: underline;
}

.itz-footer-desc a:hover {
  color: #ffffff;
}

/* ITZ Siegel Karte für Inhaltsseiten (z. B. Über uns) */
.itz-feature-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--ci-bg-surface);
  border: 1px solid var(--ci-border-light);
  border-radius: var(--ci-radius-lg);
  padding: 2.25rem;
  box-shadow: var(--ci-shadow-subtle);
  margin-top: 2rem;
}

.itz-feature-img {
  width: 220px;
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
  border-radius: var(--ci-radius-md);
  border: 1px solid var(--ci-border-light);
  background: #ffffff;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.itz-feature-content h3 {
  color: var(--ci-brand-primary);
  margin-bottom: 0.5rem;
}

.itz-feature-content p {
  color: var(--ci-text-body);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
  .itz-feature-card {
    flex-direction: column;
    text-align: center;
  }
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1080px) {
  .nav-menu {
    gap: 1.15rem;
  }
  .nav-link {
    font-size: 0.88rem;
  }
}

@media (max-width: 992px) {
  .hero-home {
    background-image: 
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 100%),
      url('../img/hero-header.jpg');
    background-position: center top;
    padding: 3.75rem 0 3rem;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; gap: 1.25rem; }
  .grid-2 { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-stats-bar { grid-template-columns: 1fr; gap: 1rem; padding-top: 1.5rem; margin-top: 1.5rem; }

  /* Mobile / Tablet Navigation */
  .header-inner {
    height: 68px;
  }
  .brand-logo-img {
    height: 36px;
    max-width: 190px;
  }
  .nav-actions {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-radius: var(--ci-radius-md);
    border: 1px solid var(--ci-border-light);
    background: var(--ci-bg-surface);
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--ci-border-light);
    box-shadow: var(--ci-shadow-elevated);
    gap: 0.25rem;
    z-index: 1001;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-link {
    display: block;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--ci-border-subtle);
  }
  .nav-link.active::after {
    display: none;
  }
  .mobile-nav-cta {
    display: block;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }
  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
  .section {
    padding: 3.25rem 0;
  }
  .section-header {
    margin-bottom: 2rem;
  }
  h1 {
    font-size: 1.9rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  h2 {
    font-size: 1.5rem;
    line-height: 1.25;
  }
  h3 {
    font-size: 1.2rem;
  }
  .lead {
    font-size: 1.05rem;
    line-height: 1.55;
  }
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .card {
    padding: 1.35rem !important;
  }
  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
  .btn-lg {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.98rem;
  }
  .hero-cta-group {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1.75rem;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .hero-home .hero-stats-bar {
    padding: 1.15rem 1.25rem;
    margin-top: 1.5rem;
  }
  .stat-value {
    font-size: 1.25rem;
  }
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .b2b-table th,
  .b2b-table td {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
  }
  .form-card {
    padding: 1.5rem 1.25rem;
  }
  .radio-pills {
    grid-template-columns: 1fr;
  }
  .notice-box {
    padding: 1.25rem;
  }
  .itz-feature-card {
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
