/* Johann Kleinlein Werkzeugmaschinen – statische Website
   Schriften liegen lokal in fonts/ (Lizenz OFL) – es werden keine Daten an Dritte übertragen.
   Überschriften: Cormorant Garamond, Fließtext: Inter; ohne Schriftdateien greifen die Systemschriften. */

@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --brand: #1e3c7d;          /* Logo-Blau */
  --brand-deep: #152c5e;     /* dunklere Stufe für Flächen */
  --brand-deeper: #0f2149;   /* Fußbereich */
  --brand-soft: #eef2f9;
  --accent-line: #c9d3e6;
  --gold: #9c8358;           /* Messington – nur für feine Linien und Ornamente */
  --gold-on-deep: #c9ad7c;
  --text: #1b2230;
  --muted: #5d6676;
  --bg: #ffffff;
  --bg-alt: #f6f7fa;
  --line: #e2e6ee;
  --card: #ffffff;
  --todo: #fff3bf;
  --radius: 2px;
  --max: 1180px;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #9db3e6;
    --brand-deep: #0e1a36;
    --brand-deeper: #0a1328;
    --brand-soft: #18233a;
    --accent-line: #2c3a57;
    --gold: #c4a979;
    --text: #e7eaf0;
    --muted: #a3acbb;
    --bg: #0f131a;
    --bg-alt: #141922;
    --line: #262e3c;
    --card: #181e29;
    --todo: #5a4a00;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

img { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { ::selection { color: #0f131a; } }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--brand); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Typografie */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; color: var(--text); overflow-wrap: break-word; }
h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.04; margin: 0 0 22px; }
h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.12; margin: 0 0 20px; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.3; margin: 32px 0 8px; letter-spacing: 0; }
p { margin: 0 0 16px; }

.eyebrow {
  display: block; margin: 0 0 18px;
  font-family: var(--sans); font-size: 12px; font-weight: 600; line-height: 1.5;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before {
  content: ""; display: inline-block; width: 32px; height: 1px;
  background: currentColor; vertical-align: middle; margin-right: 14px;
}

/* Infoleiste ganz oben */
.topbar { background: var(--brand-deep); color: #c9d4ec; font-size: 12.5px; letter-spacing: 0.03em; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .contact { display: flex; gap: 28px; }
@media (max-width: 720px) { .topbar .address { display: none; } .topbar .wrap { justify-content: center; } }

/* Kopfbereich */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding-top: 24px; padding-bottom: 24px; flex-wrap: wrap;
}
.logo img { display: block; height: 56px; width: auto; }
.logo .on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo .on-light { display: none; }
  .logo .on-dark { display: block; }
}
.site-nav { display: flex; gap: 36px; }
.site-nav a {
  position: relative; padding: 6px 0;
  font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .25s var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 560px) {
  .site-header .wrap { padding-top: 16px; padding-bottom: 14px; }
  .logo img { height: 46px; }
  .site-nav { gap: 24px; width: 100%; }
}

/* Startseite: Luftbild mit Titel */
.hero { position: relative; margin: 0; background: var(--brand-deep); color: #fff; overflow: hidden; }
.hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 50%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(14,28,62,.94) 0%, rgba(20,40,88,.80) 38%, rgba(30,60,125,.25) 72%, rgba(30,60,125,.10) 100%),
    linear-gradient(0deg, rgba(10,20,45,.45) 0%, rgba(10,20,45,0) 40%);
}
.hero .wrap {
  position: relative; z-index: 2;
  min-height: clamp(420px, 50vw, 600px);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 72px; padding-bottom: 80px;
}
.hero .eyebrow { color: #c3d0ee; }
.hero .eyebrow::before { background: var(--gold-on-deep); }
.hero h1 { color: #fff; max-width: 12em; }
.hero .lead { max-width: 32em; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.7; color: #d6dff2; margin: 0; }
.hero figcaption {
  position: absolute; right: 32px; bottom: 18px; z-index: 2;
  font-size: 11.5px; letter-spacing: 0.06em; color: rgba(255,255,255,.7);
}
@media (max-width: 720px) {
  .hero::before { background: linear-gradient(180deg, rgba(14,28,62,.82) 0%, rgba(20,40,88,.88) 100%); }
  .hero figcaption { left: 16px; right: 16px; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Abschnitte */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Unternehmen + Kontakt: offene Spalten statt Kästen, getrennt durch eine Haarlinie */
.grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 880px) { .grid { grid-template-columns: 7fr 5fr; } }

.card { position: relative; padding: 0; }
.card + .card { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
@media (min-width: 880px) {
  .card { padding-right: clamp(48px, 6vw, 96px); }
  .card + .card { margin-top: 0; padding-top: 0; border-top: 0; padding-right: 0; padding-left: clamp(48px, 6vw, 96px); border-left: 1px solid var(--line); }
}
.card h2 { margin-top: 0; font-size: clamp(32px, 3.6vw, 44px); }
.card .partner-logo {
  display: block; height: 52px; width: auto; margin: 8px 0 28px;
  background: #fff; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius);
}

.button {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 12px;
  padding: 14px 26px; border: 1px solid var(--brand); border-radius: var(--radius);
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em; text-decoration: none;
  color: #fff; background: var(--brand); transition: background .3s var(--ease), color .3s var(--ease);
}
.button:hover { background: transparent; color: var(--brand); }
@media (prefers-color-scheme: dark) {
  .button { color: #0f131a; }
  .button:hover { color: var(--brand); }
}
.button .arrow { transition: transform .3s var(--ease); }
.button:hover .arrow { transform: translateX(4px); }

address { font-style: normal; line-height: 1.75; }
address strong { font-weight: 600; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0 0 16px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
.card dl.facts { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 520px) {
  dl.facts { grid-template-columns: 1fr; gap: 0; }
  dl.facts dd { margin-bottom: 10px; }
}

.notice {
  position: relative; margin: 32px 0 0; padding: 22px 0 0 26px;
  border-top: 1px solid var(--line); font-size: 15px;
}
.notice::before {
  content: ""; position: absolute; left: 2px; top: 31px; width: 7px; height: 7px;
  background: var(--gold); transform: rotate(45deg);
}

/* Dank – auf Nachtblau */
.thanks { text-align: center; background: var(--brand-deep); color: #e7eaf0; }
.thanks { position: relative; overflow: hidden; }
.thanks .wrap { position: relative; z-index: 1; max-width: 860px; }
.thanks .mark {
  position: absolute; left: 50%; top: 50%; width: min(440px, 78vw); height: auto;
  transform: translate(-50%, -50%);
  fill: none; stroke: var(--gold-on-deep); stroke-opacity: .2; stroke-width: 1;
}
.thanks .mark * { vector-effect: non-scaling-stroke; }
.thanks .eyebrow { color: #b9c8ea; margin-bottom: 8px; }
.thanks .eyebrow::before, .thanks .eyebrow::after { background: var(--gold-on-deep); }
.thanks .eyebrow::after {
  content: ""; display: inline-block; width: 32px; height: 1px;
  vertical-align: middle; margin-left: 14px;
}
.thanks blockquote { margin: 0; }
.thanks blockquote::before {
  content: "\201C"; display: block; height: 52px; margin-top: 28px;
  font-family: var(--serif); font-size: 88px; line-height: 1; color: var(--gold-on-deep);
}
.thanks blockquote p {
  margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(26px, 3.2vw, 36px); line-height: 1.4; color: #fff;
}
.thanks .signature {
  margin: 32px 0 0; font-size: 13px; letter-spacing: 0.08em; color: #9fb0d4;
}
.thanks .signature::before {
  content: ""; display: block; width: 32px; height: 1px; margin: 0 auto 20px; background: var(--gold-on-deep);
}

/* Rechtsseiten */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5.5vw, 64px); }
.page-head .wrap { max-width: 780px; }
.page-head h1 { margin-bottom: 12px; }
.page-head .lead { margin: 0; font-size: 18px; color: var(--muted); }

.legal { max-width: 780px; padding-top: clamp(48px, 6.5vw, 72px); padding-bottom: clamp(64px, 9vw, 112px); }
.legal h2 {
  font-size: 29px; margin: 52px 0 14px; padding-top: 32px; border-top: 1px solid var(--line);
}
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 21px; }
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 4px; }
.legal li::marker { color: var(--brand); }
.legal .stand { margin-top: 48px; font-size: 14px; color: var(--muted); }

/* Platzhalter, die vor Veröffentlichung geprüft werden müssen */
.todo { background: var(--todo); padding: 0 4px; border-radius: 3px; }

/* Fußbereich */
.site-footer { background: var(--brand-deeper); color: #c3cee6; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-top: 72px; padding-bottom: 56px;
}
.footer-main img { display: block; height: 50px; width: auto; margin-bottom: 20px; }
.footer-main p { margin: 0; max-width: 26em; line-height: 1.65; }
.footer-main h2 {
  font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: #8fa3cf; margin: 0 0 16px;
}
.footer-main address { line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom a { color: #c3cee6; }
@media (max-width: 820px) { .footer-main { grid-template-columns: 1fr 1fr; } .footer-main .brand-col { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-main { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; } }

/* Handy: etwas größere Schrift und Bedienelemente */
@media (max-width: 520px) {
  body { font-size: 17.5px; line-height: 1.68; }
  h1 { font-size: min(45px, 10.6vw); } /* „Werkzeugmaschinen“ passt sonst nicht in eine Zeile */
  h2 { font-size: 33px; }
  .eyebrow { font-size: 13px; letter-spacing: 0.16em; }
  .topbar { font-size: 14px; }
  .topbar .wrap { padding-top: 11px; padding-bottom: 11px; }
  .logo img { height: 52px; }
  .site-nav { gap: 26px; }
  .site-nav a { font-size: 13.5px; padding: 10px 0; }
  .hero .lead { font-size: 18.5px; }
  .hero figcaption { font-size: 12.5px; }
  .card .partner-logo { height: 58px; }
  .button { font-size: 16px; padding: 16px 28px; }
  .notice { font-size: 16.5px; }
  .thanks blockquote p { font-size: 29px; }
  .thanks .signature { font-size: 14.5px; }
  .site-footer { font-size: 16.5px; }
  .footer-main h2 { font-size: 13px; }
  .footer-bottom { font-size: 14.5px; }
  .page-head .lead { font-size: 19px; }
  .legal h2 { font-size: 31px; }
  .legal h3 { font-size: 23px; }
}
@media (max-width: 360px) {
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 12.5px; letter-spacing: 0.1em; }
  h1 { font-size: min(40px, 10.6vw); }
}

/* Bewegung – nur dezent und nur, wenn das System keine reduzierte Bewegung wünscht */
@media (prefers-reduced-motion: no-preference) {
  @keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .hero img { animation: settle 2.8s var(--ease) both; }
  .hero .wrap > * { animation: rise 1s var(--ease) both; }
  .hero .wrap > :nth-child(2) { animation-delay: .12s; }
  .hero .wrap > :nth-child(3) { animation-delay: .24s; }

  /* Einblenden beim Scrollen, ohne JavaScript (ältere Browser zeigen alles sofort) */
  @supports (animation-timeline: view()) {
    .section .card, .thanks .wrap > * {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

/* Sprachumschalter: Flaggen Deutsch / Englisch */
.site-nav .lang-switch { display: flex; align-items: center; gap: 10px; margin-left: 4px; padding-left: 22px; border-left: 1px solid var(--line, rgba(128,128,128,.35)); }
.site-nav .lang-switch a { padding: 4px 0; line-height: 0; opacity: .55; transition: opacity .25s var(--ease); }
.site-nav .lang-switch a::after { display: none; }
.site-nav .lang-switch a:hover, .site-nav .lang-switch a:focus-visible, .site-nav .lang-switch a[aria-current="true"] { opacity: 1; }
.site-nav .lang-switch svg { display: block; height: 17px; width: auto; aspect-ratio: 5 / 3; border-radius: 2px; box-shadow: 0 0 0 1px rgba(128,128,128,.45); }
.site-nav .lang-switch a[aria-current="true"] svg { box-shadow: 0 0 0 2px var(--brand); }
@media (max-width: 560px) { .site-nav .lang-switch { margin-left: auto; padding-left: 0; border-left: 0; } }
