/* ==========================================================================
   Siebel Grundstücksverwaltungs eGbR
   Schriften lokal eingebunden (DSGVO) – keine externen Ressourcen.
   ========================================================================== */

/* --- Schriften ---------------------------------------------------------- */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/SourceSerif4-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: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/SourceSerif4-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;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/Archivo-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: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/Archivo-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;
}

/* --- Token -------------------------------------------------------------- */
:root {
  --ink: #102a4e;
  --navy: #173a6e;
  --navy-2: #2c5ca6;
  --slate: #5b6a7f;
  --paper: #f4f6fa;
  --card: #ffffff;
  --line: #ccd6e4;
  --line-soft: #e2e8f1;

  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', 'Segoe UI', system-ui, -apple-system, Helvetica, Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --measure: 62ch;
  --rule: 1px solid var(--line);
}

/* --- Basis -------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  position: relative;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--navy); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-2); }

:focus-visible {
  outline: 2px solid var(--navy-2);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { left: 0; color: #fff; }

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- Typografie --------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.1rem);
  line-height: 1.06;
  font-weight: 350;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem);
  line-height: 1.18;
}

h3 {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--ink);
}

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.02rem + 0.6vw, 1.5rem);
  line-height: 1.5;
  font-weight: 300;
  color: var(--slate);
  max-width: 34ch;
}

/* --- Kopfzeile ---------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: var(--rule);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-height: 7.5rem;
  padding-block: 1rem;
}

.masthead__logo { display: inline-flex; flex: 0 0 auto; }
.masthead__logo img {
  height: clamp(4.2rem, 3.2rem + 3.2vw, 5.8rem);
  width: auto;
  display: block;
}

/* Beim Scrollen auf rund zwei Drittel schrumpfen (siehe assets/js/site.js). */
.scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 80px;
  pointer-events: none;
}

.is-scrolled .masthead__inner {
  min-height: 4.75rem;
  padding-block: 0.6rem;
}
.is-scrolled .masthead__logo img {
  height: clamp(2.9rem, 2.2rem + 2.1vw, 3.8rem);
}

/* Schmale Displays: dort bricht die Navigation in eine zweite Zeile um, das
   kleinere Logo allein spart also kaum Höhe. Zusätzlich Abstände straffen. */
@media (max-width: 47.99rem) {
  .is-scrolled .masthead__inner {
    gap: 0.3rem 1.5rem;
    padding-block: 0.5rem;
  }
  .is-scrolled .masthead__logo img { height: 2.4rem; }
  .is-scrolled .nav { font-size: 0.875rem; }
  .is-scrolled .nav a { padding-block: 0.2rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .masthead__inner { transition: min-height 0.25s ease, padding-block 0.25s ease; }
  .masthead__logo img { transition: height 0.25s ease; }
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem clamp(1rem, 2.5vw, 2.25rem);
  font-size: 0.95rem;
}
.nav a {
  color: var(--slate);
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

/* --- Hero: Flurkarte ---------------------------------------------------- */
.hero {
  border-bottom: var(--rule);
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}

.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

@media (min-width: 62rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}

.hero h1 { margin-bottom: 1.6rem; }
.hero h1 .n { display: block; }
.hero h1 .n--sub {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.125rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--slate);
  margin-top: 1.15rem;
  max-width: 24ch;
}

.hero__contact {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  font-size: 0.95rem;
}
.hero__contact dt { color: var(--slate); margin: 0; }
.hero__contact dd {
  margin: 0;
  font-weight: 500;
}
.hero__contact a { text-decoration: none; border-bottom: 1px solid var(--line); }
.hero__contact a:hover { border-bottom-color: var(--navy-2); }

.plan { width: 100%; height: auto; display: block; }
.plan .edge { fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linejoin: round; }
.plan .div { fill: none; stroke: var(--navy); stroke-width: 1; opacity: 0.55; }
.plan .offset { fill: none; stroke: var(--navy-2); stroke-width: 1; stroke-dasharray: 5 5; opacity: 0.5; }
.plan .lot { fill: var(--navy); opacity: 0.92; }
.plan .lot-soft { fill: var(--navy-2); opacity: 0.12; }
.plan .mark { fill: var(--navy); }

/* Ein einziger Bewegungsmoment: die Karte zeichnet sich beim Laden. */
@media (prefers-reduced-motion: no-preference) {
  .plan .edge,
  .plan .div {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  }
  .plan .div { animation-delay: 0.55s; animation-duration: 1.1s; }
  .plan .offset {
    opacity: 0;
    animation: appear-offset 0.8s ease-out 1.35s forwards;
  }
  .plan .lot,
  .plan .lot-soft,
  .plan .mark {
    opacity: 0;
    animation: appear 0.7s ease-out 1.15s forwards;
  }
  .plan .lot-soft { animation-name: appear-soft; }
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 0.92; } }
@keyframes appear-soft { to { opacity: 0.12; } }
@keyframes appear-offset { to { opacity: 0.5; } }

/* --- Abschnitte --------------------------------------------------------- */
/* Sprungziele nicht unter die sticky Kopfzeile laufen lassen */
:target,
.section[id],
.legal h2[id] { scroll-margin-top: 7rem; }

.section { padding-block: clamp(3.25rem, 7vw, 6rem); }
.section + .section { border-top: 1px solid var(--line-soft); }
.section__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { margin-top: 1.25rem; }

/* Tätigkeitsfelder: Haarlinien statt Karten */
.fields {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--rule);
}
.fields li {
  display: grid;
  gap: 0.35rem 3rem;
  padding-block: clamp(1.25rem, 2.5vw, 1.9rem);
  border-bottom: var(--rule);
}
@media (min-width: 48rem) {
  .fields li { grid-template-columns: 15rem minmax(0, 1fr); }
}
.fields p { color: var(--slate); max-width: 58ch; }

/* Eckdaten: Registerauszug */
.facts {
  margin: 0;
  display: grid;
  gap: 0;
  border-top: var(--rule);
  max-width: 54rem;
}
.facts > div {
  display: grid;
  gap: 0.15rem 2rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 40rem) {
  .facts > div { grid-template-columns: 16rem minmax(0, 1fr); align-items: baseline; }
}
.facts dt { color: var(--slate); font-size: 0.9375rem; }
.facts dd { margin: 0; font-weight: 500; }

/* --- Kontakt ------------------------------------------------------------ */
.contact { background: var(--card); border-top: var(--rule); }
.contact__mail {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1rem + 3.2vw, 3rem);
  font-weight: 350;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.2;
  display: inline-block;
  border-bottom: 1px solid var(--line);
  word-break: break-word;
}
.contact__mail:hover { border-bottom-color: var(--navy-2); }

/* --- Rechtstexte -------------------------------------------------------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal__intro .lead { margin-top: 1rem; }
.legal__intro .legal__toc { margin-top: 2rem; }
.legal__intro { border-bottom: var(--rule); padding-bottom: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: clamp(2rem, 4vw, 3rem); }
.legal h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  margin-bottom: 0.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h3 { margin-top: 1.9rem; margin-bottom: 0.5rem; }
.legal p, .legal li { max-width: var(--measure); }
.legal ul { padding-left: 1.15rem; margin: 0 0 1.1em; }
.legal li { margin-bottom: 0.4em; }
.legal address { font-style: normal; margin-bottom: 1.1em; line-height: 1.8; }
.legal .legal__toc {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 2.5rem;
  font-size: 0.95rem;
}
@media (max-width: 40rem) { .legal .legal__toc { columns: 1; } }
.legal__toc li { margin-bottom: 0.45em; break-inside: avoid; }

/* --- Fußzeile ----------------------------------------------------------- */
.foot {
  border-top: var(--rule);
  background: var(--navy);
  color: #c9d6ea;
  padding-block: clamp(2.25rem, 4vw, 3rem);
  font-size: 0.9375rem;
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}
.foot a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.foot a:hover { border-bottom-color: #fff; }
.foot :focus-visible { outline-color: #fff; }
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}
.foot__links span[aria-hidden] { color: rgba(255, 255, 255, 0.3); }
