/* ==========================================================================
   EVENKA GmbH — Stylesheet
   Farbwelt aus dem Logo abgeleitet: #295199 / #396CBE / #5189CF
   ========================================================================== */

/* --- Schriften (lokal gehostet, keine externen Requests) ----------------- */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/cinzel-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/cinzel-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/instrumentsans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/instrumentsans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB;
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  --ink:        #0E1E38;
  --ink-soft:   #46587a;
  --navy:       #16305E;
  --navy-deep:  #0C1E3D;
  --blue-900:   #295199;
  --blue-700:   #396CBE;
  --blue-500:   #5189CF;
  --blue-200:   #C9DBF2;
  --blue-100:   #E7EFFA;
  --paper:      #FCFFFE;
  --line:       rgba(41, 81, 153, .16);
  --line-dark:  rgba(201, 219, 242, .22);

  --wrap: 1160px;
  --gap: clamp(1.25rem, 4vw, 2.5rem);
  --sp-section: clamp(4.5rem, 9vw, 8rem);

  --f-display: 'Cinzel', 'Iowan Old Style', Georgia, serif;
  --f-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --shadow: 0 1px 2px rgba(14, 30, 56, .05), 0 12px 32px -18px rgba(14, 30, 56, .35);
  --cut: 22px; /* Facettenschnitt an Karten */
}

/* --- Basis --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue-900); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-700); }

:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Anzeigerolle: eng gesetzte Grotesk. Cinzel bleibt den Versalien-
   Akzenten vorbehalten (Wortmarke, Eyebrows, Kennzahlen, Schrittnummern). */
h1, h2, h3 {
  font-family: var(--f-body);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.022em;
  margin: 0 0 .6em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
h1 { font-size: clamp(2.4rem, 1.3rem + 4.6vw, 4.3rem); line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.3vw, 2.85rem); }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); letter-spacing: -.012em; }
p { margin: 0 0 1.1em; max-width: 68ch; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gap)); margin-inline: auto; }

.eyebrow {
  font-family: var(--f-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 8px;
  background: currentColor;
  clip-path: polygon(0 50%, 30% 0, 100% 0, 70% 100%, 0 100%);
  opacity: .85;
}
.on-dark .eyebrow { color: var(--blue-200); }

.lead { font-size: clamp(1.06rem, 1rem + .45vw, 1.3rem); color: var(--ink-soft); }
.on-dark .lead { color: var(--blue-200); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .8rem 1.1rem; z-index: 100;
}
.skip-link:focus { left: .75rem; top: .75rem; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue-900);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid var(--btn-bg);
  border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
  cursor: pointer;
  font-family: var(--f-body);
}
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-1px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--blue-200); border-color: var(--line-dark); }
.btn--ghost:hover { background: rgba(201, 219, 242, .1); border-color: var(--blue-200); color: #fff; }
/* Ghost-Variante auf hellem Grund */
.btn--ghost-ink { --btn-bg: transparent; --btn-fg: var(--navy); border-color: var(--blue-900); }
.btn--ghost-ink:hover { background: var(--blue-100); border-color: var(--navy); color: var(--navy); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* --- Kopfzeile ----------------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 255, 254, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .8rem 0;
}
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand img { width: auto; height: 44px; }
.brand__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .1em;
  color: var(--blue-900);
}
.brand__name span { display: block; font-family: var(--f-body); font-size: .62rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav a {
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: .3rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--blue-900); border-bottom-color: var(--blue-500); }
.nav .btn { color: #fff; padding: .72rem 1.35rem; border-bottom: 1px solid var(--blue-900); }
.nav .btn:hover { color: #fff; }
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .brand__name { font-size: 1rem; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 62%, #0a1830 100%);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero h1 { color: #fff; }
.hero h1 em {
  font-style: normal;
  color: var(--blue-500);
  display: block;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__meta {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.6rem;
  font-size: .86rem;
  color: var(--blue-200);
}
.hero__meta strong { display: block; font-family: var(--f-display); font-size: 1.02rem; color: #fff; font-weight: 600; letter-spacing: .03em; margin-bottom: .15rem; }
.hero__crystal { justify-self: center; width: min(100%, 360px); }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__crystal { order: -1; width: min(42%, 155px); margin-bottom: .5rem; }
}

/* Facetten-Animation */
.facet { opacity: 0; animation: facet-in .9s cubic-bezier(.22, .8, .3, 1) forwards; }
@keyframes facet-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.fa05 { animation-delay: .05s; }
.fa11 { animation-delay: .11s; }
.fa17 { animation-delay: .17s; }
.fa23 { animation-delay: .23s; }
.fa29 { animation-delay: .29s; }
.fa30 { animation-delay: .30s; }
.fa35 { animation-delay: .35s; }
.fa36 { animation-delay: .36s; }
.fa42 { animation-delay: .42s; }
.fa48 { animation-delay: .48s; }
.fa54 { animation-delay: .54s; }
.fa60 { animation-delay: .60s; }
.crystal-lines { opacity: 0; animation: facet-in 1.1s ease .55s forwards; }
@media (prefers-reduced-motion: reduce) {
  .facet, .crystal-lines { animation: none; opacity: 1; }
}

/* --- Abschnitte ---------------------------------------------------------- */
.section { padding-block: var(--sp-section); }
.section--tint { background: linear-gradient(180deg, var(--blue-100) 0%, rgba(231, 239, 250, .35) 100%); }
.section--dark { background: var(--navy-deep); color: #fff; }
.section--dark h2 { color: #fff; }
.section__head { max-width: 62ch; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }

/* --- Leistungen ---------------------------------------------------------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 1.15rem; }
@media (min-width: 660px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.9rem 1.6rem 1.7rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.card:hover { border-color: var(--blue-500); transform: translateY(-3px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card__icon { width: 34px; height: 34px; margin-bottom: 1.1rem; color: var(--blue-700); }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .96rem; color: var(--ink-soft); margin: 0; }

/* --- Ablauf (echte Reihenfolge, darum nummeriert) ------------------------ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2.6rem 1.4rem; counter-reset: step; }
.step { position: relative; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -.05rem;
  transform: translateY(-100%);
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--blue-500);
  padding-bottom: .55rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; color: #fff; }
.step p { font-size: .94rem; color: var(--blue-200); margin: 0; }

/* --- Profil -------------------------------------------------------------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 1.5rem; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts dt, .facts .k { color: var(--ink-soft); }
.facts .v { font-weight: 600; text-align: right; }

/* --- Kontakt / Spamschutz ------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.15rem; margin-top: 2.4rem; }
.contact-item {
  background: rgba(252, 255, 254, .05);
  border: 1px solid var(--line-dark);
  padding: 1.5rem 1.4rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}
.contact-item h3 { font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--f-body); font-weight: 600; color: var(--blue-200); margin-bottom: .8rem; }
.reveal {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: none;
  border: 1px dashed var(--line-dark);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  padding: .55rem .9rem;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color .2s ease, background-color .2s ease;
}
.reveal:hover { border-color: var(--blue-500); background: rgba(81, 137, 207, .12); }
.reveal[hidden] { display: none; }
.revealed { font-size: 1.02rem; line-height: 1.5; color: #fff; }
.revealed a { color: var(--blue-200); }
.revealed a:hover { color: #fff; }
.revealed[hidden] { display: none; }

/* --- Fusszeile ----------------------------------------------------------- */
.site-foot { background: var(--navy-deep); color: var(--blue-200); padding-block: 3.2rem 2rem; border-top: 1px solid var(--line-dark); }
.site-foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line-dark); }
.site-foot img { height: 52px; width: auto; }
.site-foot__brand { font-family: var(--f-display); color: #fff; letter-spacing: .12em; font-size: 1.05rem; margin-top: .9rem; }
.site-foot__links { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .92rem; }
.site-foot a { color: var(--blue-200); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.4rem; font-size: .84rem; }

/* --- Rechtstexte --------------------------------------------------------- */
.legal { padding-block: clamp(3rem, 7vw, 5rem); }
.legal__inner { max-width: 74ch; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); margin-bottom: .3em; }
.legal h2 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal h3 { font-size: 1.05rem; margin-top: 1.6rem; font-family: var(--f-body); font-weight: 700; }
.legal ul, .legal ol { max-width: 68ch; padding-left: 1.2rem; }
.legal li { margin-bottom: .45rem; }
.legal__meta { color: var(--ink-soft); font-size: .9rem; border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 3rem; }
.legal__intro { border-left: 3px solid var(--blue-500); padding-left: 1.2rem; }

.page-head { background: var(--blue-100); border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 5vw, 3rem); }
.page-head h1 { margin-bottom: .2em; }
.page-head p { color: var(--ink-soft); margin: 0; }

/* --- Sonstiges ----------------------------------------------------------- */
.notfound { text-align: center; padding-block: clamp(5rem, 12vw, 9rem); }
.notfound p { margin-inline: auto; }

/* --- Unternehmensfakten als Beschreibungsliste --------------------------- */
.facts div { display: flex; justify-content: space-between; gap: 1.5rem; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

/* --- Karten mit Weiterführung -------------------------------------------- */
.card__more { display: inline-block; margin-top: .9rem; font-size: .92rem; font-weight: 600; }
.card p + .card__more { margin-top: .9rem; }

/* --- Hinweis-/Statusboxen ------------------------------------------------- */
.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-700);
  background: var(--blue-100);
  padding: 1rem 1.2rem;
  margin: 0 0 1.6rem;
  max-width: 74ch;
}
.notice p { margin: 0; font-size: .95rem; }
.notice--warn { border-left-color: #B07A1E; background: #FBF3E2; }

/* --- Häufige Fragen ------------------------------------------------------- */
.faq { max-width: 74ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 1.05rem .2rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--f-display);
  font-size: 1.15rem;
  color: var(--blue-700);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "–"; }
.faq details > p, .faq details > ul { padding: 0 .2rem 1.2rem; color: var(--ink-soft); margin: 0; }
.faq details > ul { margin-left: 1.1rem; }

/* --- Formular (Anfrage-Assistent) ----------------------------------------- */
.form { max-width: 46rem; }
.form fieldset { border: 1px solid var(--line); padding: 1.3rem 1.4rem 1.5rem; margin: 0 0 1.4rem; }
.form legend { font-weight: 700; padding: 0 .4rem; }
.form .feld { margin-bottom: 1.05rem; }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.form .hinweis { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-soft); }
.form input[type="text"], .form input[type="date"], .form input[type="tel"],
.form input[type="number"], .form select, .form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .65rem .8rem;
}
.form textarea { min-height: 7.5rem; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: 1px;
}
.form .auswahl { display: grid; gap: .45rem; }
.form .auswahl label { display: flex; align-items: baseline; gap: .55rem; font-weight: 400; margin: 0; }
.form .auswahl input { width: auto; accent-color: var(--blue-900); }
.ergebnis { border: 1px solid var(--line); border-top: 4px solid var(--blue-700); padding: 1.4rem; margin-top: 2rem; background: var(--blue-100); }
.ergebnis textarea { width: 100%; min-height: 14rem; font: inherit; font-size: .95rem; border: 1px solid var(--line); background: #fff; padding: .8rem; resize: vertical; }
.ergebnis .aktionen { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; align-items: center; }
.ergebnis .status { font-size: .9rem; color: var(--ink-soft); margin: .6rem 0 0; }

/* --- Checkliste ------------------------------------------------------------ */
.checklist { list-style: none; margin: 0 0 2rem; padding: 0; max-width: 74ch; }
.checklist li { display: flex; align-items: baseline; gap: .7rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.checklist input { accent-color: var(--blue-900); transform: translateY(.12em); }
.checklist label { cursor: pointer; }

@media print {
  .site-head, .site-foot, .skip-link, .no-print { display: none !important; }
  .page-head { background: none; border-bottom: 1px solid #000; padding: 0 0 .8rem; }
  body { font-size: 10.5pt; color: #000; }
  .legal, .section { padding-block: .8rem; }
  .checklist li { border-bottom-color: #bbb; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
