@charset "UTF-8";
/* ==========================================================================
   KontaktBrücke v2 — Components Styles
   Header, Navigation, Footer, Cards, Forms, Modal, Cookiebar, Toast
   ========================================================================== */

/* ---------------- Site Header & Navigation ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-ink) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(46, 91, 255, 0.28);
}

.logo-inverse .logo-name {
  color: #fff;
}

/* Nav Desktop & Mobile Drawer */
.nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  background: var(--surface);
  padding: 20px 16px 36px;
  border-top: 1px solid var(--line);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  align-items: stretch;
  box-sizing: border-box;
  z-index: 999;
  box-shadow: var(--shadow-xl);
}

.nav.is-open {
  display: flex !important;
}

.nav-drawer-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 4px 6px 12px;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-2);
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: var(--slate-50);
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  min-height: 48px;
  transition: all 180ms ease;
  text-decoration: none;
}

.nav a::after {
  content: "\203A";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--faint);
  line-height: 1;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--brand-ink);
  background: var(--brand-soft);
  border-color: var(--brand-line);
  border-left-color: var(--brand);
  padding-left: 20px;
}

.nav a[aria-current="page"]::after {
  color: var(--brand);
  font-weight: 700;
}

.nav-mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding: 20px 4px 0;
  border-top: 1px solid var(--line);
}

.nav-mobile-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding: 10px 14px;
  background: var(--slate-50);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-mobile-contact a {
  color: var(--brand);
  font-weight: 600;
  border: none;
  background: transparent;
  padding: 0;
  min-height: auto;
  font-size: 0.8875rem;
}

.nav-mobile-contact a::after {
  content: none !important;
  display: none !important;
}

.header-cta {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Nav Toggle Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: all 200ms ease;
  border-radius: 2px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Ab 1024px: Desktop Navigation — alles sauber auf einer Linie */
@media (min-width: 1024px) {
  .site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    background: transparent;
    padding: 0;
    gap: 0;
    border: none;
    overflow: visible;
    box-shadow: none;
    height: auto;
    width: auto !important;
    flex-shrink: 0;
  }

  .nav-drawer-label {
    display: none !important;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2px;
    padding: 0;
    width: auto !important;
    flex-shrink: 0;
  }

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

  .nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-2);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    min-height: auto;
    white-space: nowrap !important;
    word-break: keep-all !important;
    hyphens: none !important;
    line-height: 1.2;
    flex-shrink: 0;
    transition: all 150ms ease;
  }

  .nav a::after {
    display: none !important;
    content: none !important;
  }

  .nav a:hover {
    color: var(--brand);
    background: var(--brand-soft);
    padding-left: 8px;
    border-left: none;
  }

  .nav a[aria-current="page"] {
    color: var(--brand);
    background: var(--brand-soft);
    font-weight: 600;
    border-left: none;
    padding-left: 8px;
  }

  .header-cta {
    display: flex;
    flex-shrink: 0;
  }

  .header-cta .btn {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .nav-toggle {
    display: none;
  }
}

@media (min-width: 1280px) {
  .nav-links {
    gap: 4px;
  }

  .nav a {
    font-size: 0.9rem;
    padding: 8px 11px;
  }

  .nav a:hover,
  .nav a[aria-current="page"] {
    padding-left: 11px;
  }
}

/* ---------------- Site Footer ---------------- */
.site-footer {
  background: var(--hero-a);
  color: #fff;
  padding-top: 64px;
  padding-bottom: 32px;
  margin-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 48px;
  }
}

.footer-col-brand .footer-desc {
  color: var(--faint);
  margin-top: 14px;
  font-size: 0.925rem;
  max-width: 320px;
}

.footer-meta {
  color: #6d7d9f;
  font-size: 0.8125rem;
  margin-top: 12px;
}

.footer-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

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

.footer-links a {
  color: var(--faint);
  font-size: 0.925rem;
  transition: color 150ms ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact a {
  color: #9cb3ff;
  word-break: break-all;
}

.footer-time {
  color: #6d7d9f;
  font-size: 0.85rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #6d7d9f;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-legal-links a {
  color: var(--faint);
}
.footer-legal-links a:hover {
  color: #fff;
}

/* ---------------- Cards ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

@media (min-width: 768px) {
  .card {
    padding: 30px;
  }
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.card h3 {
  margin-bottom: 10px;
}

.card ul {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card ul li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.card ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

/* Listen ohne Häkchen (z. B. einfache Linklisten oder Metadaten) */
.card ul.no-check li {
  padding-left: 0;
}
.card ul.no-check li::before {
  content: none !important;
  display: none !important;
}

/* ---------------- Unternehmensprofil Key-Value Definition List ---------------- */
.profile-dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

@media (min-width: 480px) {
  .profile-dl {
    grid-template-columns: 115px 1fr;
    gap: 12px 18px;
    align-items: baseline;
  }
}

.profile-dl dt {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8875rem;
  white-space: nowrap;
}

.profile-dl dd {
  color: var(--ink);
  font-size: 0.925rem;
  margin: 0;
  line-height: 1.45;
  word-break: break-word;
}

.profile-dl dt::before,
.profile-dl dd::before {
  content: none !important;
  display: none !important;
}

/* ---------------- Formulare ---------------- */
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .form {
    padding: 32px;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(46, 91, 255, 0.15);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.hint {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}

.field.consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--muted);
  cursor: pointer;
}

.field.consent input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--brand);
}

/* Honeypot hidden */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

/* Form Message State */
.form-msg {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 500;
  margin-bottom: 18px;
  line-height: 1.4;
}

.form-msg.is-ok {
  display: block;
  background: var(--ok-soft);
  color: var(--ok);
  border: 1px solid var(--ok-line);
}

.form-msg.is-err {
  display: block;
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #fecaca;
}

/* ---------------- FAQ Accordion <details> ---------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 150ms ease;
}

.faq-item[open] {
  border-color: var(--brand-line);
  box-shadow: var(--shadow-xs);
}

.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--brand);
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-body {
  padding: 0 22px 20px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ---------------- Cookiebar ---------------- */
.cookiebar {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 540px;
  margin: 0 auto;
  z-index: 9999;
  background: rgba(16, 24, 40, 0.96);
  backdrop-filter: blur(12px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-xl);
  animation: slideUp 300ms ease-out;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookiebar[hidden] {
  display: none !important;
}

.cookiebar p {
  color: var(--faint);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.cookiebar p a {
  color: #9cb3ff;
  text-decoration: underline;
}

.cookiebar-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cookiebar .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.cookiebar .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------------- Modals ---------------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 20, 55, 0.65);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 10;
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow-xl);
  animation: modalPop 200ms ease-out;
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-x {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.modal-x:hover {
  color: var(--ink);
  background: var(--bg);
}

.modal-title {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.modal-sub {
  color: var(--muted);
  font-size: 0.925rem;
  margin-bottom: 20px;
}

/* ---------------- Toast Notifications ---------------- */
.toast-region {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 11000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 200ms ease;
  max-width: 360px;
}

@keyframes toastIn {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-ok {
  border-left: 4px solid var(--ok);
}
.toast-err {
  border-left: 4px solid var(--danger);
}

/* ---------------- Table Responsive Wrap ---------------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
  text-align: left;
}

th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--bg);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* Status-Chips */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.badge-ok, .chip-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge-brand, .chip-brand {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.badge-warn, .chip-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.badge-muted, .chip-muted {
  background: var(--slate-100);
  color: var(--slate-600);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumb a {
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--brand);
}
