@font-face { font-family: "Lato"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/lato-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/lato-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/cinzel-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy: #1A1F2B;
  --navy-2: #252B3A;
  --gold: #CC9900;
  --gold-soft: #E0B84D;
  --gold-dark: #8A6800; /* Gold für kleine Schrift auf hellem Grund, ausreichender Kontrast */
  --ink: #1A1F2B;
  --muted: #5A6070;
  --on-navy: #C9CDD6;
  --line: #E3E5EA;
  --tint: #F4F5F7;
  --white: #FFFFFF;
  --max: 1320px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Lato", system-ui, sans-serif; font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--white); }
a { color: inherit; }
img { max-width: 100%; }
.nw { white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(24px, 5vw, 72px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 20; }

/* Header */
.top { background: var(--navy); color: var(--white); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.top .logo img { height: 18px; width: auto; display: block; }
.nav { display: flex; gap: 28px; font-size: 15px; letter-spacing: .02em; }
.nav a { text-decoration: none; opacity: .85; white-space: nowrap; }
.nav a:hover { opacity: 1; color: var(--gold-soft); }
.nav a[aria-current="page"] { opacity: 1; color: var(--gold-soft); }
.menu { display: none; }

/* Hero (start page) and page heads */
.hero { background: var(--navy); color: var(--white); padding: 88px 0 112px; }
.page-head { background: var(--navy); color: var(--white); padding: 72px 0 88px; }
.kicker { font-family: "Cinzel", serif; font-weight: 600; text-transform: uppercase; color: var(--gold); font-size: 16px; letter-spacing: .16em; margin: 0 0 28px; }
.hero h1 { font-weight: 300; font-size: clamp(38px, 5.6vw, 66px); line-height: 1.12; letter-spacing: -.01em; margin: 0; max-width: 18ch; }
.page-head h1 { font-weight: 300; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.15; letter-spacing: -.01em; margin: 0; max-width: 22ch; }
.lead { font-size: 20px; color: var(--on-navy); max-width: 40em; margin: 32px 0 0; }
.hero .lead { margin: 36px 0 44px; }
.btns { display: flex; flex-wrap: wrap; gap: 16px; }
.btn { display: inline-block; padding: 14px 26px; font-weight: 700; font-size: 15px; letter-spacing: .04em; text-decoration: none; border: 1px solid var(--gold); }
.btn.solid { background: var(--gold); color: var(--navy); }
.btn.ghost { color: var(--white); }
.btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy); }
.btn.dark { color: var(--navy); }

/* Sections */
section { padding: 96px 0; }
section.tight { padding-top: 0; }
h2.label { font-family: "Cinzel", serif; font-weight: 600; text-transform: uppercase; font-size: 17px; letter-spacing: .14em; color: var(--ink); margin: 0 0 48px; }
.more { margin-top: 36px; font-weight: 700; font-size: 15px; }
.more a, .prose a, .text-link { text-decoration-color: var(--gold); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.tinted { background: var(--tint); }

/* Service tiles (start) */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--white); padding: 36px 32px 40px; }
.num { font-family: "Cinzel", serif; color: var(--gold); font-size: 28px; line-height: 1; display: block; margin-bottom: 20px; }
.card h3 { font-size: 20px; line-height: 1.3; margin: 0 0 12px; }
.card p { margin: 0; color: var(--muted); font-size: 16.5px; }
a.card { text-decoration: none; display: block; }
a.card:hover h3 { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }

/* Case teasers (start) */
.case-list { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.case .date { font-family: "Cinzel", serif; font-weight: 600; text-transform: uppercase; color: var(--gold-dark); font-size: 15px; letter-spacing: .12em; }
.case h3 { font-size: 26px; font-weight: 300; line-height: 1.3; margin: 12px 0 16px; }
.case p { margin: 0; color: var(--muted); }

/* Service detail (services page) */
.service { display: grid; grid-template-columns: 96px 1fr; gap: 32px; padding: 56px 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service .num { font-size: 36px; }
.service h2 { font-size: 28px; font-weight: 300; line-height: 1.25; margin: 0 0 20px; }
.service p { margin: 0 0 16px; max-width: 42em; }
.service .for, .service .form { color: var(--muted); font-size: 16.5px; }
.service .for strong, .service .form strong { color: var(--ink); }

.forms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.forms div { background: var(--white); padding: 28px 24px 32px; }
.forms h3 { font-family: "Cinzel", serif; font-weight: 600; text-transform: uppercase; font-size: 16px; letter-spacing: .1em; color: var(--ink); margin: 0 0 12px; }
.forms p { margin: 0; color: var(--muted); font-size: 16px; }

/* Experience */
.story { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 64px 0; border-top: 1px solid var(--line); }
.story:first-of-type { border-top: 0; padding-top: 0; }
.story .date { font-family: "Cinzel", serif; font-weight: 600; text-transform: uppercase; color: var(--gold-dark); font-size: 15px; letter-spacing: .12em; padding-top: 10px; }
.story h2 { font-size: 30px; font-weight: 300; line-height: 1.25; margin: 0 0 20px; }
.story p { margin: 0 0 16px; max-width: 42em; }
.story .result { font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.facts h3 { font-family: "Cinzel", serif; font-weight: 600; text-transform: uppercase; font-size: 15px; letter-spacing: .12em; color: var(--gold-dark); margin: 0 0 12px; }
.facts p { margin: 0; color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.5fr; gap: 72px; align-items: start; }
.about figure { margin: 0; }
.about figure img { display: block; width: 100%; height: auto; }
.about figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }
.prose p { margin: 0 0 20px; max-width: 40em; }
.prose h2 { font-size: 26px; font-weight: 300; line-height: 1.3; margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .when { color: var(--muted); font-size: 16px; padding-top: 2px; }
.timeline strong { display: block; }
.timeline span.what { color: var(--muted); font-size: 16.5px; }

/* Contact band */
.contact { background: var(--navy); color: var(--white); }
.contact h2.label { color: var(--gold); }
.contact .big { font-size: clamp(26px, 3.4vw, 38px); font-weight: 300; margin: 0 0 32px; max-width: 22ch; line-height: 1.25; }
.contact .links { display: flex; flex-wrap: wrap; gap: 16px 40px; font-size: 19px; }
.contact .links a { text-decoration-color: var(--gold); text-underline-offset: 6px; }

/* Legal pages */
.legal { max-width: 46em; }
.legal h2 { font-size: 22px; font-weight: 700; margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: #3A404D; }
.legal address { font-style: normal; }

footer { background: var(--navy-2); color: #9AA0AD; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; padding-bottom: 24px; }
footer a { text-decoration: none; margin-left: 24px; }
footer a:first-child { margin-left: 0; }
footer a:hover { color: var(--white); }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .case-list { grid-template-columns: 1fr; gap: 48px; }
  .forms { grid-template-columns: 1fr 1fr; }
  .story { grid-template-columns: 1fr; gap: 12px; }
  .facts { grid-template-columns: 1fr; gap: 32px; }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .about figure { max-width: 360px; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 72px; }
  .page-head { padding: 48px 0 56px; }
  section { padding: 64px 0; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 28px 24px 32px; }
  .service { grid-template-columns: 1fr; gap: 8px; padding: 40px 0; }
  .forms { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}

/* Platzhalter für offene Punkte, vor dem Livegang entfernen */
.todo { background: #FFF4CC; border: 1px dashed var(--gold); color: #5A4500; padding: 12px 16px; font-size: 15px; margin: 16px 0; max-width: 42em; }

/* Kontaktformular */
.contact-form { display: grid; gap: 20px; max-width: 40em; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.contact-form input, .contact-form textarea { font: inherit; font-weight: 400; font-size: 17px; padding: 12px 14px; border: 1px solid #C9CDD6; background: var(--white); color: var(--ink); border-radius: 0; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.contact-form .hint { margin: 0; font-size: 15px; color: var(--muted); }
.contact-form button { justify-self: start; cursor: pointer; font-family: inherit; }
.contact-form .hp { position: absolute; left: -9999px; }
.notice { display: none; max-width: 40em; padding: 14px 18px; margin: 0 0 24px; }
.notice:target { display: block; }
.notice.ok { background: #E7F3EA; color: #1E5A2E; }
.notice.err { background: #FBE9E7; color: #7A2318; }
.about figcaption strong { color: var(--ink); }

/* Startseite: großes Logo im Hero, kleines Logo in der Kopfzeile ausgeblendet.
   Der Hero füllt den Bildschirm. Das Logo steht mittig zwischen Navigation und Kernzeile:
   gleiche automatische Abstände über und unter dem Logo, der Textblock bekommt oben 46px als
   Ausgleich (30px Leerraum unter der Navigation plus 16px Hero-Polster). */
.top.home .logo { visibility: hidden; }
.top.home + main .hero { padding: 16px 0 64px; min-height: calc(100vh - 80px); min-height: calc(100svh - 80px); display: flex; }
.top.home + main .hero .wrap { display: flex; flex-direction: column; width: 100%; }
.hero-brand { position: relative; margin: auto 0; }
.hero-logo { display: block; height: clamp(26px, 4.2vw, 50px); width: auto; }
.hero-body { padding-top: 46px; margin-bottom: auto; }
@media (max-width: 680px) {
  .top.home + main .hero { padding-bottom: 48px; }
}

/* Startseite: W|A-Signet als Wasserzeichen rechts im Hero, angeschnitten */
.top.home + main .hero { position: relative; overflow: hidden; }
.top.home + main .hero .wrap { position: relative; z-index: 1; }
/* Signet füllt den Raum rechts neben der Kernzeile bis zum rechten Inhaltsrand (gleicher Rand wie links).
   Oberkante des goldenen Strichs liegt etwa eine Strichbreite unter dem Logo. */
.hero-mark { position: absolute; top: calc(100% + 0.6vw); left: 60%; right: 0; width: auto; max-width: 40%; margin-left: auto; height: auto; pointer-events: none; }
.hero-mark .m-letter { fill: #FFFFFF; fill-opacity: .028; }
.hero-mark .m-bar { fill: var(--gold); fill-opacity: .3; }
@media (max-width: 1360px) { .hero-mark { display: none; } }

/* Hamburger-Symbol für das Menü auf schmalen Bildschirmen, wird beim Öffnen zum X */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; }
.burger, .burger::before, .burger::after { display: block; width: 24px; height: 2px; background: var(--white); transition: transform .2s ease, background .2s ease; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }
.menu[open] .burger { background: transparent; }
.menu[open] .burger::before { transform: translateY(7px) rotate(45deg); }
.menu[open] .burger::after { transform: translateY(-7px) rotate(-45deg); }
.menu summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Unter 900px passt die Navigation nicht mehr in eine Zeile: Hamburger statt offener Navigation */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu nav { position: absolute; right: -10px; top: 52px; background: var(--navy-2); padding: 16px 20px; display: grid; gap: 14px; min-width: 210px; z-index: 10; }
  .menu nav a { text-decoration: none; }
  .menu nav a[aria-current="page"] { color: var(--gold-soft); }
}
