/* Gebrüder Kraus GbR – Dachseite.
   Schriften liegen auf dem eigenen Server (keine Verbindung zu Google o. a.).
   Inter und EB Garamond: SIL Open Font License 1.1. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-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+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/eb-garamond-regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/eb-garamond-medium.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Polnische, slowenische u. a. Sonderzeichen (ą ł č š ž …). Variable Datei, aber je Gewicht
   ein eigener Eintrag: Chrome kombiniert Teilschriften nur bei identischem font-weight. */
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/eb-garamond-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/eb-garamond-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Dachseite: neutral, keine Markenfarbe dominiert */
  --stone: #eceeed;
  --stone-2: #e1e4e3;
  --ink: #1c2126;
  --ink-2: #4a525a;
  --rule: #c5cbcf;
  --white: #ffffff;
  /* Navis Neptun (wie navis-neptun.de) */
  --navy: #0a2540;
  --gold: #80622a; /* 5,0:1 auf --paper */
  --paper: #f7f0e1;
  /* Handelshaus (wie livoxtech.de) */
  --blue: #2563eb;
  --blue-dark: #1d4ed8;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "EB Garamond", Georgia, serif;
  --max: 68rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: .6rem 1rem;
  z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Kopf ---------- */

.head {
  padding: 1.5rem 0;
}
.head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.mark {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -.01em;
}
.mark img { width: 40px; height: 32px; }
.tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .875rem;
}
.tools a { white-space: nowrap; }
.tools__invoice { color: var(--ink-2); }
.tools__invoice:hover { color: var(--ink); }
/* Sprachauswahl: Kästchen ab Tablet, Ausklappmenü auf dem Handy (reines CSS) */
.langs {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.langs li + li { border-left: 1px solid var(--rule); }
.langs a {
  display: block;
  min-width: 2.1rem;
  padding: .35rem .45rem;
  text-align: center;
  color: var(--ink-2);
  text-decoration: none;
}
.langs a:hover { color: var(--ink); background: var(--stone-2); }
.langs a[aria-current] { color: var(--ink); font-weight: 700; background: var(--white); }
.langmenu { display: none; }
@media (max-width: 760px) {
  .langs { display: none; }
  .langmenu { display: block; }
}

/* Sprachmenü: <details> ohne JavaScript */
.langmenu { position: relative; }
.langmenu summary {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.1rem;
  padding: .35rem .65rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary::after {
  content: "";
  width: .4rem;
  height: .4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.langmenu[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.langmenu summary:hover { border-color: var(--ink-2); }
.langmenu ul {
  position: absolute;
  right: 0;
  top: calc(100% + .4rem);
  z-index: 10;
  min-width: 11rem;
  margin: 0;
  padding: .35rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 14px 30px -14px rgba(28, 33, 38, .4);
}
.langmenu a {
  display: block;
  padding: .45rem .75rem;
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
}
.langmenu a:hover { background: var(--stone); }
.langmenu a[aria-current] { font-weight: 700; background: var(--stone); }
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Einleitung ---------- */

.intro {
  padding: clamp(2rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
}
.intro h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7.5vw, 5rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.035em;
}
.intro p {
  margin: 1.25rem 0 0;
  max-width: none; /* läuft über die Breite beider Kacheln */
  font-size: clamp(1.125rem, 1.1rem + .6vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- Die zwei Geschäftsbereiche ----------
   Die Hausmarke zeigt zwei Stäbe mit einem Feld dazwischen.
   Auf der Seite sind die Stäbe die beiden Geschäftsbereiche:
   gleich breit, gleich hoch, jede Kachel in ihrer eigenen Markensprache. */

.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

/* Ganze Kachel klickbar, Linkname bleibt aber kurz ("Zu Navis Neptun"):
   das ::after des Buttons spannt sich über die Kachel. */
.door {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 26rem;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: 6px;
  border-top: 8px solid;
  transition: transform .18s ease, box-shadow .18s ease;
}
.door:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(28, 33, 38, .45);
}
.door:has(.door__btn:focus-visible) {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.door__btn:focus-visible { outline: none; }

.door__logo { height: 4.25rem; display: flex; align-items: center; }
.door__title { margin: 2rem 0 .25rem; }
.door__what { margin: 0; font-weight: 600; }
.door__text { margin: 1rem 0 0; max-width: 30rem; }
.door__go {
  margin: 0;
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.door__btn {
  display: inline-block;
  text-decoration: none;
  padding: .7rem 1.15rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: .95rem;
  text-wrap: balance;
}
.door__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1; /* über .door__url (opacity erzeugt eigenen Stapelkontext) */
  border-radius: 6px;
}
.door__url { font-size: .9rem; opacity: .8; }

/* Navis Neptun: Papier, Navy, Garamond */
.door--navis {
  background: var(--paper);
  color: var(--navy);
  border-top-color: var(--navy);
}
.door--navis .door__logo img {
  width: 100%;
  max-width: 26rem;
  height: auto;
  mix-blend-mode: multiply; /* weißer Logogrund verschmilzt mit dem Papier */
}
@media (max-width: 480px) {
  .door--navis .door__logo img { max-width: 15rem; }
}
.door--navis .door__title {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: 0;
}
.door--navis .door__what { color: var(--gold); }
.door--navis .door__text { font-family: var(--serif); font-size: 1.2rem; line-height: 1.55; }
.door--navis .door__btn { background: var(--navy); color: var(--paper); }
.door--navis:hover .door__btn,
.door--navis:has(.door__btn:focus-visible) .door__btn { background: #163354; }

/* Handelshaus: Weiß, Blau, Inter */
.door--haus {
  background: var(--white);
  color: #111827;
  border-top-color: var(--blue);
}
/* Hausmarke und Name als Wortbildmarke: Titel immer zweizeilig ("Gebrüder Kraus" / "Handelshaus"),
   Schriftgröße folgt der Kachelbreite (Container-Einheiten), Logo so hoch wie beide Titelzeilen. */
.door__head {
  display: flex;
  align-items: center;
  --fs: clamp(1.25rem, 2.6vw, 2.25rem); /* Rückfall für Browser ohne Container Queries */
  gap: calc(var(--fs) * .5);
}
@supports (container-type: inline-size) {
  .door__head { container-type: inline-size; --fs: clamp(1.25rem, 8.6cqi, 2.25rem); }
}
.door__mark { flex: none; width: auto; height: calc(var(--fs) * 2.1); }
.door__head .door__title { margin: 0; }
.door--haus .door__head .door__title {
  font-size: var(--fs);
  line-height: 1.1;
  font-weight: 650;
  hyphens: manual;
}
.door__head .door__title span { display: block; white-space: nowrap; }
.door__head + .door__what { margin-top: 1rem; }

/* Zweispaltig: beide Kacheln teilen sich die Zeilen (Unterzeile, Text, Button auf gleicher Höhe) */
@media (min-width: 761px) {
  .doors { grid-template-rows: auto auto auto auto 1fr; }
  .door { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; }
  .door__head { grid-row: span 2; align-self: center; margin-bottom: .25rem; }
  .door__head + .door__what { margin-top: 0; }
  .door__go { margin-top: 0; align-self: end; }
}
.door--haus .door__title {
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.door--haus .door__what { color: var(--blue-dark); }
.door--haus .door__text { color: #374151; }
.door--haus .door__btn { background: var(--blue); color: var(--white); }
.door--haus:hover .door__btn,
.door--haus:has(.door__btn:focus-visible) .door__btn { background: var(--blue-dark); }

/* ---------- Rechnung ---------- */

.invoice {
  margin-top: clamp(3rem, 8vw, 5.5rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 5vw, 4rem);
}
.invoice h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.invoice p { margin: 0 0 1rem; max-width: 36rem; }
.help { margin: 0 0 1rem; padding-left: 1.1rem; max-width: 36rem; }
.help li { margin-bottom: .4rem; }
.invoice .note {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border-left: 4px solid var(--ink);
  border-radius: 0 4px 4px 0;
}

.contacts {
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .5rem 1.5rem;
}
.contacts dt { color: var(--ink-2); }
.contacts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.contacts dd.contacts__bank { line-height: 1.55; }

/* ---------- Rechtstexte ---------- */

.legal {
  padding: clamp(1.5rem, 5vw, 3rem) 0 1rem;
  max-width: 44rem;
}
.legal h1, .legal h2, .door__title, .invoice h2 {
  hyphens: auto;
  overflow-wrap: break-word;
}
.legal h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.03em;
}
.legal h2 {
  margin: 2.25rem 0 .5rem;
  font-size: 1.2rem;
  letter-spacing: -.01em;
}
.legal h3 { margin: 1.5rem 0 .4rem; font-size: 1rem; }
.legal p, .legal ul { margin: 0 0 .9rem; }
.legal ul { padding-left: 1.25rem; }
.legal address { font-style: normal; }
.back { display: inline-block; margin-bottom: 1.5rem; color: var(--ink-2); }

/* ---------- Fuß ---------- */

.foot {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: .9rem;
  color: var(--ink-2);
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.foot address { font-style: normal; }
.foot nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* ---------- Responsiv ---------- */

@media (max-width: 760px) {
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 0; }
  .invoice { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  /* Name steht direkt darunter als h1; das Logo-Link-Label bleibt per aria-label erhalten. */
  .mark span { display: none; }
  /* Der Rechnungslink steht auf schmalen Bildschirmen im Einleitungstext. */
  .tools__invoice { display: none; }
}

/* Kontaktliste untereinander, solange die Spalte schmal ist (lange Bezeichnungen in FR/PT/SL) */
@media (max-width: 1000px) {
  .contacts { grid-template-columns: 1fr; gap: .1rem; }
  .contacts dd { margin-bottom: .6rem; }
}

@media (forced-colors: active) {
  .door { border: 1px solid CanvasText; }
  .door__btn { border: 1px solid ButtonText; }
}

@media (prefers-reduced-motion: reduce) {
  .door { transition: none; }
  .door:hover { transform: none; }
}

@media print {
  body { background: #fff; }
  .door { break-inside: avoid; border: 1px solid #999; }
  .tools, .skip { display: none; }
  .door__btn::after { display: none; }
}
