/* FREIGEIST Global – Dark Theme Override
   Add after style.css on all pages.
   Existing layout, spacing, text, and responsiveness remain untouched. */
:root {
  color-scheme: dark;
  --bg: #171717;
  --background: #171717;
  --surface: #242424;
  --accent: #D6C3A1;
  --text: #F5F3EF;
  --muted: #C9C5BF;
  --line: #51483B;
}
html, body { background-color: #171717 !important; color: #F5F3EF !important; }
body, main, header.top, footer { color: #F5F3EF; }
header.top, .top { background-color: #171717 !important; border-color: #51483B !important; }
.brand, .brand:visited { color: #F5F3EF !important; }
.brand span { color: #D6C3A1 !important; }
nav, nav a, .language, .language a { color: #E7E3DC !important; }
nav a:hover, .language a:hover { color: #D6C3A1 !important; }
.hero { background-color: #171717 !important; color: #F5F3EF !important; }
.hero .eyebrow, .eyebrow, .section-num, .small-label { color: #D6C3A1 !important; }
.hero h1, .section h2, .legal-page h1, .legal-page h2 { color: #F5F3EF !important; }
.hero p, .section p, .section li, .legal-page p, .legal-page li { color: #DCD8D2 !important; }
.section, .section.light, .section.dark, .section.profile, .section.contact,
.legal-page { background-color: #242424 !important; color: #F5F3EF !important; border-color: #51483B !important; }
.section:nth-of-type(even) { background-color: #1B1B1B !important; }
.section em, .section h2 em, .method h3, .closing, .lead { color: #D6C3A1 !important; }
.section-content, .hero-body { color: #F5F3EF !important; }
.method, .portrait, .contact-note { background-color: #2C2A27 !important; border-color: #51483B !important; color: #F5F3EF !important; }
.method h3 span, .portrait span { color: #C9C5BF !important; }
.portrait-symbol { color: #D6C3A1 !important; }
.examples li { border-color: #51483B !important; }
a { color: #D6C3A1; }
a:hover { color: #F2DFC0; }
a.cta, .cta { background: #D6C3A1 !important; color: #171717 !important; border-color: #D6C3A1 !important; }
a.cta:hover, .cta:hover { background: #F2DFC0 !important; color: #171717 !important; }
.back-to-top, .footer-links a, .contact-note a, .legal-page a { color: #D6C3A1 !important; }
footer, .footer-links { background-color: #171717 !important; border-color: #51483B !important; color: #C9C5BF !important; }
hr { border-color: #51483B !important; }
:focus-visible { outline: 2px solid #D6C3A1; outline-offset: 3px; }

/* Kontaktbereich – grauen Hintergrund entfernen */
.contact-note {
    background: transparent !important;
}
/* Methodenkästen – Hintergrund entfernen */
.method {
    background: transparent !important;
}

/* Einheitlicher Marken-Header auf allen Sprach- und Rechtstextseiten */
header.top .brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 190px;
  max-width: 100%;
  flex-shrink: 0;
  letter-spacing: normal;
  line-height: 1.2;
}
header.top .brand .brand-logo {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
}
header.top .brand span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .04em;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 500px) {
  header.top .brand { width: 155px; }
  header.top .brand .brand-logo { width: 155px; }
  header.top .brand span { font-size: 9px; }
}


/* FREIGEIST – November 2026: project-management section and PrivacyPhone banner */
.project-services { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.project-services li { padding: 14px 18px; background: #2C2A27; border: 1px solid #51483B; border-radius: 8px; }
.privacy-promo-wrap { position: relative; display: flex; justify-content: flex-end; max-width: 900px; margin: -30px auto 35px; padding: 0 32px; }
.privacy-promo { position: relative; z-index: 1; width: min(100%, 295px); background: #A52B32; color: #fff; padding: 17px 19px; border-radius: 8px; box-shadow: 0 10px 24px #0008; transform: rotate(6deg); text-align: left; }
.privacy-promo .promo-kicker { display: block; font-size: 10px; font-weight: 800; letter-spacing: .12em; margin-bottom: 9px; color: #fff; }
.privacy-promo .promo-headline { display: block; font-size: 17px; font-weight: 700; line-height: 1.25; margin-bottom: 10px; color: #fff; }
.privacy-promo .promo-price { display: block; font-size: 13px; line-height: 1.4; font-weight: 700; margin-bottom: 13px; color: #fff; }
.privacy-promo .promo-link { display: inline-block; background: #fff; color: #242424 !important; border-radius: 4px; font-size: 12px; line-height: 1.3; font-weight: 700; padding: 8px 10px; text-decoration: none; }
.privacy-promo .promo-link:hover { background: #f2e7e3; color: #242424 !important; }
.privacy-details ul { padding-left: 22px; }
.privacy-details li { margin-bottom: 10px; }
.privacy-details .price-highlight { font-size: 25px; font-weight: 700; color: #D6C3A1; }
@media(max-width:850px) { .privacy-promo-wrap { margin: -15px 0 35px; } }
@media(max-width:600px) { .project-services {grid-template-columns: 1fr;} .privacy-promo-wrap { justify-content: center; margin: 0 auto 25px; padding: 0 22px; } .privacy-promo {transform: none; width: 100%; max-width: 320px;} }
@media(prefers-reduced-motion:reduce) { .privacy-promo { transition: none; } }

/* November 2026: PrivacyPhone teaser directly below top navigation. */
main > .privacy-promo-wrap {
  max-width: none;
  margin: 20px clamp(24px, 7vw, 105px) 0;
  padding: 0 16px 0 0;
  justify-content: flex-end;
}
main > .privacy-promo-wrap + .home-hero { padding-top: 46px; }
@media (max-width: 850px) {
  main > .privacy-promo-wrap { margin: 22px 24px 0; }
  main > .privacy-promo-wrap + .home-hero { padding-top: 48px; }
}
@media (max-width: 600px) {
  main > .privacy-promo-wrap { margin: 22px 18px 0; padding: 0; justify-content: flex-end; }
  main > .privacy-promo-wrap .privacy-promo { width: min(100%, 295px); }
  main > .privacy-promo-wrap + .home-hero { padding-top: 40px; }
}


/* Header refinement: preserve the original logo proportions without oversized navigation wrapping. */
header.top { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px 32px; }
header.top .brand { flex:0 0 auto; width:190px; max-width:100%; }
header.top .brand .brand-logo { width:190px; max-width:100%; height:auto; object-fit:contain; }
header.top nav { flex:1 1 520px; display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:10px 20px; }
@media(max-width:850px) { header.top nav a:not(:last-of-type) {display:inline;} header.top nav {justify-content:flex-start;flex-basis:100%;font-size:12px;} }
@media(max-width:500px) {header.top .brand, header.top .brand .brand-logo {width:155px;} header.top nav {gap:8px 13px;} }
/* Equal-status A/B service areas, with the site’s existing gold-on-dark visual language. */
.service-section .examples {max-width:760px;}
.service-section .examples li {font-weight:400;line-height:1.5;}
.service-section .lead {max-width:730px;}

/* Keep Android Open + PrivacyPhone: balanced banners under navigation. */
main > .promo-pair {display:flex; align-items:flex-start; justify-content:space-between; gap:32px; margin:22px clamp(24px,7vw,105px) 0;}
main > .promo-pair > .privacy-promo-wrap {display:flex; flex:0 1 335px; max-width:335px; margin:0; padding:0; justify-content:flex-end;}
main > .promo-pair .privacy-promo {width:min(100%,295px);}
main > .promo-pair > .android-promo {flex:0 1 370px; min-width:0; background:#A52B32; color:white; border-radius:8px; padding:16px; box-shadow:0 10px 24px #0008; transform:rotate(-3deg);}
.android-promo-heading {font-size:13px; font-weight:800; letter-spacing:.045em; line-height:1.4; margin-bottom:8px;}
.android-promo-heading a {color:white!important; text-decoration:none;}
.android-promo-heading a:hover {text-decoration:underline;}
#keep-android-open-banner {min-width:0; overflow-wrap:anywhere;}
main > .promo-pair + .home-hero {padding-top:50px;}
@media(max-width:700px){main > .promo-pair{flex-direction:column;align-items:stretch;margin:22px 18px 0;gap:22px;}main > .promo-pair > .android-promo{flex:auto;width:100%;max-width:380px;transform:none;}main > .promo-pair > .privacy-promo-wrap{flex:auto;align-self:flex-end;width:100%;max-width:320px;}main > .promo-pair .privacy-promo{transform:none;width:100%;max-width:320px;}main > .promo-pair + .home-hero{padding-top:42px;}}
@media(prefers-reduced-motion:reduce){main > .promo-pair > .android-promo{transform:none;}}

/* 14 Nov 2026: prevent overlap between the campaign and PrivacyPhone cards. */
@media (min-width: 701px) {
  main > .promo-pair { gap: clamp(48px, 6vw, 100px); }
  main > .promo-pair > .privacy-promo-wrap {
    margin-top: 76px;
    flex-shrink: 0;
  }
  main > .promo-pair > .android-promo { flex-shrink: 1; }
}
@media (max-width: 700px) {
  main > .promo-pair > .privacy-promo-wrap { margin-top: 12px; }
}

/* KI & Automatisierung: distinct third service, consistent with existing design. */
.ai-service { background: #202020; }
.ai-service .section-content { max-width: 780px; }
.ai-service .section-num { color: #D6C3A1; }
.ai-service h2 em { color: #D6C3A1; }
header.top nav a[href="#ki-automatisierung"] { color: #D6C3A1 !important; font-weight: 700; }
header.top nav a[href="#ki-automatisierung"]:hover { color: #F5F3EF !important; }
