/* ==========================================================================
   Vermessungsbüro Cathérine Ebert – Neubau 2026
   Reines CSS, keine externen Abhängigkeiten, keine Webfonts, kein CDN.
   Farbwelt aus der Altseite abgetastet: hellblauer Grund #cce0f5,
   weiße Cards #fff, Grauflächen #cccccc, Akzentblau #0345bf, Text #252525.
   ========================================================================== */

/* ---------- Design-Tokens ---------- */
:root {
  --c-blue-bg:   #cce0f5;   /* Seiten-/Hero-Grund (Altseite) */
  --c-grey-bg:   #cccccc;   /* Graufläche hinter den Cards (Altseite) */
  --c-surface:   #ffffff;   /* Card-Fläche */
  --c-surface-2: #f4f6f9;   /* Sekundärfläche */
  --c-accent:    #0345bf;   /* Button/Akzent (Altseite) */
  --c-accent-dk: #022d7d;
  --c-link:      #14508f;   /* Linkblau */
  --c-gold:      #e6b23a;   /* Logo-Gold, nur als Akzent */
  --c-text:      #252525;   /* Fließtext (Altseite) */
  --c-text-soft: #4a4a4a;
  --c-line:      #b9c6d4;   /* dezente Trennlinie */
  --c-focus:     #e6b23a;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(10, 28, 46, .12), 0 8px 24px rgba(10, 28, 46, .08);
  --wrap: 1140px;
  --header-h: 116px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-blue-bg);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--c-link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--c-accent-dk); }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 300; margin: 0 0 .6em; color: var(--c-text); }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 300; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); }
p  { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: .3em 0; }

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

/* ---------- Hilfsklassen ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1rem; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--c-accent); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius); text-decoration: none;
  transition: top .15s ease-in;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  min-height: 96px;
}
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  padding-block: .6rem;
}
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: inherit; }
.brand__logo { width: 96px; height: auto; flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-size: 1.05rem; font-weight: 600; color: var(--c-accent-dk); line-height: 1.2; }
.brand__claim { font-size: .82rem; color: var(--c-text-soft); }

.site-header__contact { margin-left: auto; text-align: right; font-size: .9rem; line-height: 1.45; }
.site-header__contact a { white-space: nowrap; }

/* Nav – Menüleiste dunkel wie Altseite (#sp-header: #383737, Menütext #fff) */
.nav { background: #383737; padding-block: .45rem; }
.nav__toggle {
  display: none; align-items: center; gap: .5rem;
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.45); border-radius: var(--radius);
  padding: .5rem .8rem; font: inherit; cursor: pointer;
}
.nav__toggle[aria-expanded="true"] { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.nav__list { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-block; padding: .35rem 0; text-decoration: none;
  color: #f2f2f2; font-size: .98rem; border-bottom: 3px solid transparent;
}
.nav__link:hover { color: var(--c-gold); border-bottom-color: var(--c-gold); }
.nav__link[aria-current="page"] { color: #fff; border-bottom-color: var(--c-gold); font-weight: 600; }

/* ---------- Hero-Slider (Altseite: JS-Slider "slide", 1500 ms, 7 s Takt) ---------- */
.hero { position: relative; background: var(--c-grey-bg); max-width: var(--wrap); margin-inline: auto; margin-top: clamp(1rem, 2.5vw, 1.75rem); }
/* Höhen wie Altseite: xl 400 px, lg/md 600 px, sm/xs 350 px */
.hero__stage { position: relative; height: 400px; overflow: hidden; background: var(--c-grey-bg); }
@media (max-width: 1199.98px) { .hero__stage { height: 600px; } }
@media (max-width: 767.98px)  { .hero__stage { height: 350px; } }
/* Motiv schiebt von rechts nach links ein (data-slider-animation="slide", data-speed="1500") */
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: translateX(100%);
  transition: transform 1.5s linear;
  will-change: transform;
}
.hero__slide:first-child { transform: translateX(0); }
.hero__caption {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(92%, 860px);
  background: #4d4b4b;
  border: 2px solid #fff; border-radius: 5px;
  color: #fff; text-align: center;
  padding: 1rem 1.2rem; margin: 0;
  font-size: clamp(1.1rem, 3vw, 1.9rem); font-weight: 100; line-height: 1.3;
}
.hero__controls {
  position: absolute; inset-inline: 0; top: 50%; transform: translateY(-50%);
  display: flex; justify-content: space-between; padding-inline: .5rem; pointer-events: none;
}
.hero__btn {
  pointer-events: auto; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.82); color: #252525;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.hero__btn:hover { background: #fff; }
.hero__dots {
  position: absolute; left: 0; right: 0; bottom: .9rem;
  display: flex; justify-content: center; gap: .6rem; list-style: none; margin: 0; padding: 0;
}
.hero__dot {
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff;
  background: rgba(37, 37, 37, .45); padding: 0; cursor: pointer;
}
.hero__dot[aria-current="true"] { background: #fff; }

/* ---------- Sektionen / Cards ---------- */
.section { padding-block: clamp(1.5rem, 4vw, 3rem); }
.section--grey { background-color: var(--c-grey-bg); }
.section--blue { background-color: var(--c-blue-bg); }

/* Parallax-Hintergrundbilder der Altseite (#leistungen / #buerovorstellung):
   feststehendes Hintergrundbild + #ccc-Overlay im hard-light-Modus (wie Original-Code). */
.section--parallax {
  position: relative;
  background-color: var(--c-grey-bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}
.section--parallax::before {
  content: "";
  position: absolute; inset: 0;
  background-color: var(--c-grey-bg);
  mix-blend-mode: hard-light;
  pointer-events: none;
}
.section--parallax > .wrap { position: relative; z-index: 1; }
.section--parallax--riss  { background-image: url("../images/img/riss-hero.jpg"); background-position: 50% 100%; }
.section--parallax--buero { background-image: url("../images/img/buero.jpg");     background-position: 50% 50%; }

.card {
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.3rem, 3.5vw, 3rem);
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.card + .card { margin-top: clamp(1rem, 2.5vw, 2rem); }

.section__title { text-align: center; margin-bottom: .4em; }
.section__rule { border: 0; border-top: 1px solid var(--c-line); margin: 0 0 2rem; }

.grid { display: grid; gap: clamp(1.2rem, 3vw, 2.5rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); align-items: start; }
.grid--cards { grid-template-columns: repeat(2, 1fr); }

.lead { font-size: 1.1rem; }

/* ---------- Icon-Listen (Leistungen / Bürovorstellung) ----------
   Icons rein per CSS gezeichnet (Häkchen aus zwei Rahmenkanten) –
   kein Icon-Font, kein CDN, kein externer Request. */
.icon-list { list-style: none; padding-left: 0; margin: 0; }
.icon-list > li {
  position: relative;
  padding: .42rem .6rem .42rem 2.15rem;
  border-radius: var(--radius);
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.icon-list > li + li { margin-top: .1rem; }
.icon-list > li::before {
  content: "";
  position: absolute; left: .62rem; top: .95em;
  width: .52rem; height: .28rem;
  border-left: 2px solid var(--c-accent);
  border-bottom: 2px solid var(--c-accent);
  transform: rotate(-45deg);
  transition: border-color .18s ease, transform .18s ease;
}
.icon-list > li:hover {
  background: #eaf2fd;
  transform: translateX(4px);
  box-shadow: 0 2px 10px rgba(3, 69, 191, .12);
}
.icon-list > li:hover::before { border-color: var(--c-accent-dk); transform: rotate(-45deg) translate(1px, -1px); }

/* Intro */
.intro__title { text-align: center; }
.intro__claim { text-align: center; font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--c-accent-dk); }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--c-accent); color: #fff; text-decoration: none;
  padding: .7rem 1.2rem; border-radius: var(--radius); font-size: 1rem;
}
.btn:hover { background: var(--c-accent-dk); color: #fff; }
.btn__icon { flex: 0 0 auto; }

/* Downloads */
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.file-list a {
  display: flex; align-items: center; gap: .6rem;
  background: var(--c-surface-2); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: .6rem .9rem; text-decoration: none; color: var(--c-link);
}
.file-list a:hover { border-color: var(--c-accent); background: #eaf2fd; }

/* Kontakt */
address { font-style: normal; }
.contact-block { display: grid; gap: .35rem; }
.contact-block a { white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: #383737; color: #fff;
  padding-block: 1.25rem; font-size: .9rem;
}
.site-footer a { color: #a2a2a2; }
.site-footer a:hover { color: #fff; }
.site-footer__inner {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem;
  justify-content: space-between; align-items: center;
}
.site-footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 0; padding: 0; }
.site-footer__copy { margin: 0; }

/* ---------- "Nach oben"-Button ----------
   Fest oben rechts eingeblendet, sobald gescrollt wird. Kein CDN,
   Pfeil als Inline-SVG. */
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-accent); color: #fff; border: 0; cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background-color .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--c-accent-dk); }
.to-top__icon { width: 18px; height: 18px; display: block; }

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 900px; margin-inline: auto; }
.legal h2 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); margin-top: 1.8em; }
.legal h2:first-of-type { margin-top: 0; }
.legal ul { margin-bottom: 1.2em; }
.legal .stand { color: var(--c-text-soft); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .grid--2, .grid--cards { grid-template-columns: 1fr; }
  .site-header__inner { align-items: flex-start; }
  .brand__logo { width: 58px; }
  .site-header__contact { font-size: .82rem; }

  .nav__toggle { display: inline-flex; }
  .nav__list {
    display: none; flex-direction: column; gap: 0;
    margin-top: .4rem; border-top: 1px solid rgba(255,255,255,.25);
  }
  .nav__list.is-open { display: flex; }
  .nav__link { border-bottom: 1px solid rgba(255,255,255,.25); padding: .7rem 0; width: 100%; }
}

@media (max-width: 480px) {
  .hero__caption { padding: .7rem .9rem; width: min(74%, 860px); }
  .hero__btn { width: 38px; height: 38px; font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide, .skip-link { transition: none; }
  .icon-list > li, .icon-list > li::before { transition: none; }
  .icon-list > li:hover { transform: none; }
  .to-top { transition: none; }
}
