/* dnuebling.de – One-Pager
   Schriften lokal eingebunden (kein Aufruf externer Server). */

@font-face {
  font-family: "Libre Baskerville";
  src: url("../fonts/libre-baskerville-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #10264a;
  --steel: #536b83;
  --mist: #f3f5f9;
  --white: #ffffff;
  --line: #e0e5eb;
  --text: #4b5563;

  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 80px;
  --section-y: clamp(64px, 9vw, 112px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin: 0;
}

p { margin: 0 0 1em; overflow-wrap: break-word; }
.card p, .fact p, .approach__text p { hyphens: auto; -webkit-hyphens: auto; }

a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 12px 26px;
  font: 500 0.9375rem/1.2 var(--sans);
  letter-spacing: 0.01em;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 2px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { background: #1b3a6b; text-decoration: none; }
.btn svg { width: 20px; height: 20px; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: var(--navy);
}
.brand__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}
.brand__role {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  line-height: 1;
}

.nav { display: flex; align-items: center; }
.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding: 8px 2px;
}
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.nav .btn { color: var(--white); padding: 11px 28px; min-height: 44px; }
.nav .btn--ghost { color: var(--navy); }
.nav .btn--ghost:hover { color: var(--white); }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(105deg, #ffffff 0%, #f6f8fb 50%, #e9eef5 100%);
}
.hero__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%);
  mask-image: linear-gradient(to right, transparent 0%, #000 38%);
}
.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: clamp(380px, 52vh, 540px);
  padding-block: clamp(48px, 6vw, 88px);
}
.hero__content { max-width: 720px; }
.eyebrow span { white-space: nowrap; }
.eyebrow {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--steel);
}
.hero h1 {
  font-size: clamp(2rem, 3.5vw, 2.875rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin-bottom: 24px;
}
.hero h1 span { display: block; }
.hero__lead {
  font-size: 1.1875rem;
  max-width: 38em;
  margin: 0;
}

/* ---------- Sektionen allgemein ---------- */
.section { padding-block: var(--section-y); }
.section--mist { background: var(--mist); }

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}
.section-head h2,
.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin-bottom: 20px;
}
.section-head p { margin: 0 0 1em; text-align: left; }
.section-head p:last-child { margin-bottom: 0; }

/* ---------- Schwerpunkte ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: #c3ccd8;
  box-shadow: 0 6px 24px rgba(16, 38, 74, 0.06);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--navy);
}
.card__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  margin-bottom: 14px;
}
.card p { margin: 0; font-size: 1rem; }

.cta-note {
  display: flex;
  align-items: center;
  gap: 20px 24px;
  margin-top: clamp(32px, 4vw, 48px);
  padding: 24px clamp(20px, 3vw, 36px);
  background: #f1f6f3;
  border: 1px solid #0f3d33;
  color: #46564f;
}
.cta-note__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #dae5df;
}
.cta-note__icon svg { width: 38px; height: 38px; fill: none; stroke: #0f3d33; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cta-note strong { color: #0f3d33; font-weight: 600; font-size: 1.125rem; }
.cta-note__text { min-width: 0; overflow-wrap: anywhere; }
.cta-note p { margin: 0; }
.cta-note p + p { margin-top: 4px; }
.cta-note a { color: #0f3d33; }
.cta-note a:hover { text-decoration-thickness: 2px; }
.cta-note :focus-visible { outline-color: #0f3d33; }

/* ---------- Ansatz ---------- */
.approach {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.approach .section-title { margin-bottom: 0; }
.approach__text { max-width: 40em; }
.approach__text p { font-size: 1.125rem; }
.approach__text p:last-child { margin-bottom: 0; }

/* ---------- Hintergrund ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 4.5vw, 64px) clamp(32px, 5vw, 72px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.fact { padding-top: 28px; border-top: 2px solid var(--navy); }
.fact h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); margin-bottom: 14px; }
.fact p { margin: 0; font-size: 1rem; }

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.contact .section-title { margin-bottom: 0; }
.contact address { font-style: normal; font-size: 1.125rem; }
.contact__name {
  font-family: var(--serif);
  font-size: 1.375rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.contact dl { margin: 20px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; }
.contact dt { color: var(--steel); font-weight: 500; }
.contact dd { margin: 0; }
.btn[hidden] { display: none; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #d5dce8;
  font-size: 0.9375rem;
}
.site-footer .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: 12px clamp(32px, 6vw, 96px);
  padding-block: 28px;
}
.site-footer p { margin: 0; }
.site-footer nav { justify-self: end; }
.site-footer ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--white); text-decoration: none; padding: 6px 0; display: inline-block; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--white); }

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(1.5rem, 3.2vw, 2.5rem); margin-bottom: 32px; overflow-wrap: anywhere; hyphens: auto; }
.legal h2 { font-size: clamp(1.25rem, 2.2vw, 1.625rem); margin: 40px 0 16px; }
.legal h3 { font-size: 1.125rem; margin: 28px 0 10px; }
.legal h4 { font: 600 1rem/1.4 var(--sans); color: var(--navy); margin: 22px 0 6px; }
.legal ul { margin: 0 0 1em; padding-left: 1.25em; }
.legal li { margin-bottom: 0.4em; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal .rev { unicode-bidi: bidi-override; direction: rtl; }
.legal .notice {
  padding: 16px 20px;
  background: var(--mist);
  border-left: 3px solid var(--steel);
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .hero__media { width: 70%; opacity: 0.85; }
}

/* ---------- Mobil ---------- */
@media (max-width: 820px) {
  :root { --header-h: 68px; }

  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px;
  }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav li:last-child { border-bottom: 0; padding-top: 16px; }
  .nav a { display: block; padding: 14px 2px; }
  .nav .btn { display: flex; justify-content: center; }
  /* Ohne JavaScript: Navigation bleibt sichtbar, Wortmarke und Menü brechen um */
  html:not(.js) .site-header .container { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .nav ul { flex-direction: row; flex-wrap: wrap; gap: 4px 20px; }
  html:not(.js) .nav li { border: 0; padding: 0 !important; }

  .hero { background: linear-gradient(180deg, #ffffff 0%, #f3f6fa 100%); }
  .hero .container { flex-direction: column; align-items: stretch; min-height: 0; padding-block: 40px 0; }
  .hero__content { max-width: none; }
  .hero__media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 220px;
    margin-top: 40px;
    opacity: 1;
  }
  .hero__media img {
    object-position: 85% center;
    -webkit-mask-image: none;
    mask-image: none;
  }
  /* Medienblock liegt außerhalb des Containers, damit er randlos läuft */

  .cards { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .approach,
  .contact { grid-template-columns: 1fr; gap: 24px; }
  .approach .section-title,
  .contact .section-title { margin-bottom: 4px; }
  .cta-note { align-items: flex-start; }
  .site-footer .container { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .site-footer nav { justify-self: start; }
}

@media (max-width: 480px) {
  .cta-note { gap: 14px; padding: 20px 16px; }
  .cta-note__icon { width: 56px; height: 56px; }
  .cta-note__icon svg { width: 30px; height: 30px; }
  .brand__name { font-size: 1.0625rem; letter-spacing: 0.08em; }
  .brand__role { font-size: 0.625rem; letter-spacing: 0.18em; }
  .contact dl { grid-template-columns: 1fr; gap: 2px; }
  .contact dd { margin-bottom: 10px; }
  .btn { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Portrait neben der Wortmarke ---------- */
.brand { flex-direction: row; align-items: center; gap: 12px; }
.brand__text { display: flex; flex-direction: column; gap: 4px; }
.brand__photo { width: 44px; height: 44px; border-radius: 50%; flex: none; display: block; }
@media (max-width: 820px) { .brand__photo { width: 38px; height: 38px; } .brand { gap: 12px; } }
@media (max-width: 380px) { .brand__photo { width: 34px; height: 34px; } .brand { gap: 10px; } .brand__name { font-size: 1.05rem; letter-spacing: 0.06em; } .brand__role { letter-spacing: 0.1em; font-size: 0.625rem; } }

/* ---------- Sprachumschalter ---------- */
.nav .lang { display: flex; align-items: center; gap: 8px; }
.nav .lang a { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; padding: 8px 2px; }
.nav .lang a[aria-current="true"] { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav .lang span { color: var(--steel); }
@media (max-width: 820px) { .nav .lang a { display: inline-block; } }
