/* ==========================================================
   Gustav Kopf GmbH – MedienService
   Reines CSS, kein JavaScript, keine externen Ressourcen
   ========================================================== */

/* ---------- Schrift: Open Sans (lokal, Variable Font) ---------- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-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: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Variablen ---------- */
:root {
  --ink: #2a2129;          /* dunkles Aubergine-Schwarz der Headline */
  --text: #3a3235;
  --muted: #574e50;
  --stone: #cbbfae;        /* Steinwand-Ton als Fallback-Hintergrund */
  --gutter: clamp(1.25rem, 10.75vw, 13.5rem); /* linker Rand wie im Entwurf */
  --maxw: 54rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

body {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--stone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ==========================================================
   Desktop (Standard)
   ========================================================== */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(2rem, 4vw, 3.5rem) var(--gutter) clamp(2rem, 3.5vw, 3rem);
  overflow: hidden;
  isolation: isolate;
}

/* Hintergrundbild */
.bg,
.bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bg { z-index: -2; }
.bg img {
  object-fit: cover;
  object-position: 70% 30%;
}

/* Logo */
.logo {
  width: clamp(12rem, 26vw, 33rem);
  height: auto;
}

/* Inhalt */
.content {
  align-self: center;
  max-width: var(--maxw);
  padding: clamp(2.5rem, 6vh, 5rem) 0;
}

h1 {
  color: var(--ink);
  font-weight: 800;
  font-size: clamp(2rem, 3.3vw, 3.6rem);
  line-height: 1.18;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin-bottom: 0.6em;
}

.lead {
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.7vw, 1.75rem);
  line-height: 1.4;
  max-width: 30ch;
  margin-bottom: 1.75em;
}

.content > p:not(.lead) {
  font-weight: 400;
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  max-width: 34em;
  margin-bottom: 1.4em;
}

/* Buttons */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  margin-top: clamp(2rem, 4vw, 3.75rem);
}

.btn {
  display: inline-block;
  padding: 1rem 1.6rem;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover {
  background: var(--ink);
  color: #fff;
}
.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* Footer / Impressum */
.footer {
  font-size: clamp(.8rem, .9vw, .95rem);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.55;
}

/* ==========================================================
   Tablet (bis 1100px): Bild bleibt, Text bekommt hellen Schleier
   ========================================================== */
@media (max-width: 1100px) {
  :root { --gutter: clamp(1.5rem, 6vw, 3.5rem); }

  .page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg,
      rgba(214, 203, 186, .9) 0%,
      rgba(214, 203, 186, .8) 50%,
      rgba(214, 203, 186, 0) 85%);
  }

  .bg img { object-position: 78% 25%; }
  .content, .footer { max-width: 29rem; }
  .br-wide { display: none; }
  h1 { font-size: clamp(1.9rem, 3.4vw, 2.4rem); }
  .footer { color: #4d4547; font-weight: 400; }
}

/* ==========================================================
   Mobil (bis 700px) & Tablet hochkant:
   Foto oben als eigener Block, Text darunter
   ========================================================== */
@media (max-width: 700px), (max-width: 1100px) and (orientation: portrait) {
  .page {
    display: block;
    min-height: 0;
    padding: 0;
  }
  .page::before { display: none; }

  .bg,
  .bg img { position: static; }
  .bg { display: block; }
  .bg img {
    height: auto;
    aspect-ratio: 4 / 3.4;
    object-position: 82% 20%;
  }

  .header {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 1.25rem var(--gutter) 2.5rem;
    background: linear-gradient(180deg, rgba(214, 203, 186, .85), rgba(214, 203, 186, 0));
  }
  .logo { width: min(15rem, 60vw); }

  .content {
    max-width: none;
    padding: 2.25rem var(--gutter) 1.5rem;
  }
  .content > p:not(.lead) { max-width: none; }
  h1 { max-width: none; }

  .contact {
    flex-direction: column;
    gap: .875rem;
    margin-top: 2rem;
  }
  .btn {
    display: block;
    text-align: center;
  }

  .footer {
    max-width: none;
    padding: 1.5rem 0 2rem;
    border-top: 1px solid rgba(42, 33, 41, .2);
    margin: 0 var(--gutter);
  }
}

@media (max-width: 1100px) and (min-width: 701px) and (orientation: portrait) {
  .bg img { aspect-ratio: 16 / 10; object-position: 85% 25%; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Druck ---------- */
@media print {
  .bg, .page::before { display: none; }
  body { background: #fff; color: #000; }
  .btn { border-color: #000; }
}
