/* ==========================================================================
   OBJ Objektbetreuung Juist — style.css (CLEAN / STRATO-LIVE)
   - Aufgeräumt: keine doppelten Patches, kein „CSS-Grauschleier“
   - Fokus: Header, Hero, Startseite, Leistungen, Info-Dashboard, Kontakt,
            Mobile Nav + Back-to-top, Page-Hero Pattern
   ========================================================================== */

/* ==========================================================================
   01 RESET / BASE
   ========================================================================== */
*,
*::before,
*::after{ box-sizing:border-box; }

html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body{
  margin: 0;
  font-family: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-sand);
}

img, svg, video{
  display:block;
  max-width:100%;
  height:auto;
}

a{ color: inherit; text-decoration:none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline: 2px solid rgba(246,196,69,.9);
  outline-offset: 3px;
  border-radius: 10px;
}

button{
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

::selection{
  background: rgba(246,196,69,.30);
  color: rgba(10,18,24,.98);
}

/* ==========================================================================
   02 VARIABLES
   ========================================================================== */
:root{
  /* Backgrounds */
  --bg-sand: #f3f0e8;
  --bg-sand-2: #efe9dd;

  /* Header / Dark surfaces */
  --bg: #061a29;
  --bg-2: #072238;

  /* Text (NO pure black) */
  --text-head: #233a4a; 
  --text-body: #425764; 
  --text-muted: #5f7380;

  --text-primary: #243746;     /* Haupttext */
  --text-secondary: #4A6375;   /* Subline / erklärender Text */
  --text-muted: #6F8594;      /* Meta / Hinweise */

  /* On dark */
  --on-dark: rgba(255,255,255,.92);
  --on-dark-muted: rgba(255,255,255,.72);

  /* Brand */
  --brand: rgba(246,196,69,.95);
  --brand-soft: rgba(246,196,69,.18);
  --node-green: rgba(60,255,140,.95);

  /* Border & shadow */
  --border-dark: rgba(255,255,255,.12);
  --border-light: rgba(15,30,43,.10);

  --shadow: 0 18px 50px rgba(0,0,0,.28);
  --shadow-soft: 0 12px 28px rgba(15,30,43,.10);

  /* Header tokens */
  --header-border: rgba(255,255,255,.10);
  --header-text: rgba(255,255,255,.85);
  --header-strong: rgba(255,255,255,.98);

  /* Radius / spacing */
  --r-lg: 18px;
  --r-md: 14px;

  --wrap: 1180px;
  --gutter: 18px;

  /* Typography */
  --h1: clamp(32px, 4vw, 54px);
  --h2: clamp(26px, 3.2vw, 40px);
  --h3: clamp(18px, 2vw, 22px);
  --p: 16px;

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
  --t: 180ms var(--ease);

  /* Safe areas */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);

  /* HERO IMAGE */
  --hero-img: url("/images/hero-index-1600.webp");
}

/* ==========================================================================
   03 LAYOUT / TYPO
   ========================================================================== */
.wrapper{
  width: min(var(--wrap), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

h1,h2,h3{
  margin: 0;
  letter-spacing: -.02em;
  color: var(--text-head);
}
h1{ font-size: var(--h1); line-height: 1.05; }
h2{ font-size: var(--h2); line-height: 1.12; }
h3{ font-size: var(--h3); line-height: 1.22; }

p{
  margin: 0;
  font-size: var(--p);
  font-weight: 480;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  line-height: 1.75;
}

h1, h2, h3,
.section-title{
  color: var(--text-head);
}

/* FIX: war vorher ungültig (padding fehlte) */
.section{
  padding: clamp(72px, 10vh, 120px) 0;
}

.section-title{
  margin: 0;
  font-size: var(--h2);
  line-height: 1.12;
  color: var(--text-head);
}

.section-subtitle{
  margin-top: 10px;
  max-width: 72ch;
  color: var(--text-muted);
}

.center{ display:flex; justify-content:center; }
.mt-2{ margin-top: 18px; }

/* ==========================================================================
   04 HEADER
   ========================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1200;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  background:
    radial-gradient(900px 260px at 18% -45%, rgba(246,196,69,.10), transparent 62%),
    radial-gradient(800px 240px at 92% -55%, rgba(60,255,140,.08), transparent 58%),
    linear-gradient(180deg,
      rgba(6,26,41,.92) 0%,
      rgba(6,22,35,.88) 55%,
      rgba(5,18,28,.86) 100%
    );

  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 18px 50px rgba(0,0,0,.34);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 22px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  height: 44px;
  flex: 0 0 auto;
}
.brand img{
  width: 150px;
  height: auto;
  transform: scale(1.06);
  transform-origin: left center;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.35));
}

.main-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 26px;
}

.nav-link{
  position: relative;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 2px;

  font-weight: 760;
  font-size: 14px;
  letter-spacing: .01em;

  color: var(--header-text);
  transition: color var(--t), transform var(--t);
}
.nav-link svg{
  width: 14px;
  height: 14px;
  opacity: .80;
  stroke-width: 1.8;
  stroke: var(--node-green);
  transform: translateY(1px);
  transition: opacity var(--t), filter var(--t), transform var(--t);
}
.nav-link:hover{
  color: var(--header-strong);
  transform: translateY(-1px);
}
.nav-link:hover svg{
  opacity: .98;
  filter: drop-shadow(0 0 6px rgba(60,255,140,.18));
}
.nav-link::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:5px;
  height:2px;
  border-radius:999px;
  background: linear-gradient(90deg, transparent, rgba(60,255,140,.85), transparent);
  opacity:0;
  transform: scaleX(.55);
  transform-origin:center;
  transition: opacity var(--t), transform var(--t);
}
.nav-link:hover::after{
  opacity:.55;
  transform: scaleX(1);
}

/* Right-most “Login/Eigentümerbereich” link */
.nav-login{
  position: relative;
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 2px;

  background:none;
  border:0;

  color: var(--node-green);
  font-weight: 850;
  font-size: 14px;
  letter-spacing:.01em;

  transition: color var(--t), transform var(--t);
}
.nav-login svg{
  width:18px;
  height:18px;
  stroke: currentColor;
}
.nav-login:hover{
  color: rgba(60,255,140,1);
  transform: translateY(-1px);
}
.nav-login::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:5px;
  height:2px;
  border-radius:999px;
  background: linear-gradient(90deg, transparent, rgba(60,255,140,.95), transparent);
  opacity:0;
  transition: opacity var(--t);
}
.nav-login:hover::after{ opacity:.85; }

/* Burger */
.nav-toggle{
  width:44px;
  height:44px;
  border-radius:14px;
  border:0;
  background:transparent;
  cursor:pointer;
  display:none;
}
.nav-toggle:hover{ background: rgba(255,255,255,.06); }
.nav-toggle .bars{
  width:18px;
  height:12px;
  display:grid;
  gap:3px;
  margin:0 auto;
}
.nav-toggle .bars span{
  display:block;
  height:2px;
  border-radius:999px;
  background: rgba(255,255,255,.86);
}

/* ==========================================================================
   05 BUTTONS (GLOBAL)
   ========================================================================== */
.btn,
.btn-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;

  padding: 12px 20px;
  min-height: 44px;

  font-weight: 800;
  font-size: 15px;
  letter-spacing: .01em;

  color: rgba(12,18,22,.92);
  border: 0;
  border-radius: 999px;

  background: linear-gradient(180deg, #ffe08a 0%, #ffc83a 55%, #ffb703 100%);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.70),
    0 10px 22px rgba(255,183,3,.20);

  transition: filter 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.btn:hover,
.btn-cta:hover{
  filter: brightness(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.80),
    0 14px 26px rgba(255,183,3,.24);
  transform: translateY(-1px);
}
.btn:active,
.btn-cta:active{
  transform: translateY(0);
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,.14),
    0 8px 18px rgba(255,183,3,.18);
}

/* ==========================================================================
   06 HERO – FINAL / ALL TEXT WHITE (nur EINMAL!)
   ========================================================================== */
.hero{
  position: relative;
  min-height: clamp(520px, 68vh, 760px);
  padding: 120px 0 90px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Background image */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
  z-index: -2;
}

/* Overlay */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.50) 0%,
      rgba(0,0,0,0.22) 45%,
      rgba(0,0,0,0.60) 100%
    );
}

/* Content */
.hero .wrapper{
  position: relative;
  z-index: 1;
}

.hero--center{
  max-width: 78ch;
  margin-inline: auto;
  text-align: center;
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* Kicker */
.hero-kicker{
  display:inline-flex;
  align-items:center;
  padding: 8px 14px;
  margin-bottom: 18px;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.30);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);

  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;

  color: #ffffff !important;
}

/* HEADLINE – WEISS */
.hero h1{
  margin: 0 0 18px;
  max-width: 20ch;

  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;

  color: #ffffff !important;
  text-shadow: 0 18px 42px rgba(0,0,0,.60);
}

/* SUBLINE + TEXT – WEISS */
.hero p{
  margin: 0 0 28px;
  max-width: 62ch;

  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.65;
  font-weight: 500;

  color: #ffffff !important;
  text-shadow: 0 12px 28px rgba(0,0,0,.55);
}

.hero-trust{
  margin-top: 22px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 10px 26px rgba(0,0,0,.55);
}

/* CTA row */
.hero-actions{
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 18px;
}

/* Hinweistext – WEISS + ZENTRIERT */
.hero small{
  display:block;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  color: #ffffff !important;
  text-shadow: 0 10px 26px rgba(0,0,0,.55);
}

/* Mobile */
@media (max-width: 720px){
  .hero{ padding: 110px 0 80px; }
  .hero h1{ max-width: 100%; font-size: clamp(30px, 8vw, 44px); }
  .hero p{ font-size: 16px; }
  .hero-actions{
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
}

/* ==========================================================================
   07 WILLKOMMEN (TEXT + BILD)
   ========================================================================== */
#startseite.section{ background: var(--bg-sand); }

#startseite{
  position: relative;
  padding-top: 70px;
}

/* sehr weicher Übergang aus dem Hero (kein harter Balken) */
#startseite::before{
  content: none !important;
  display: none !important;
  position:absolute;
  left:0; right:0;
  top:-140px;
  height: 180px;
  pointer-events:none;
  z-index:0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 0%,
    rgba(6,26,41,.12) 55%,
    rgba(6,26,41,.18) 100%
  );
}

#startseite > *{ position: relative; padding-top: 56px !important; z-index: 1; }

#startseite .welcome-box{
  background: rgba(255,255,255,.80);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);

  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 44px;
}

#startseite .welcome-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: start;
}

#startseite .welcome-text h2{
  margin: 0 0 18px;
  font-weight: 780;
  line-height: 1.10;
  letter-spacing: -0.02em;
  color: var(--text-head);
}

#startseite .welcome-text p{
  margin: 0 0 14px;
  max-width: 70ch;
  color: rgba(36,55,70,.82);
}

#startseite .welcome-result{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(15,30,43,.10);
  font-weight: 800;
  color: rgba(36,55,70,.92);
}

#startseite .welcome-media{
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15,30,43,.10);
  box-shadow: 0 14px 34px rgba(15,30,43,.12);
  background: rgba(255,255,255,.35);
}
#startseite .welcome-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  object-position: 52% 35%;
  filter: saturate(1.02) contrast(1.02);
}
#startseite .welcome-media figcaption{
  padding: 10px 12px;
  font-size: 13px;
  color: rgba(36,55,70,.60);
  background: rgba(255,255,255,.78);
  border-top: 1px solid rgba(15,30,43,.08);
}

/* ==========================================================================
   08 LEISTUNGEN – CARDS
   ========================================================================== */
#leistungen.section{ background: var(--bg-sand); }

.cards-grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card{
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(15,30,43,.10);
  border-radius: var(--r-lg);
  box-shadow: 0 10px 22px rgba(15,30,43,.08);
  padding: 18px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(246,196,69,.25);
  box-shadow: 0 14px 30px rgba(15,30,43,.10);
}

.card-head{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-bottom: 8px;
}

.card-icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(15,30,43,.10);
  background: rgba(255,255,255,.65);
  box-shadow: 0 8px 18px rgba(15,30,43,.06);
}
.card-icon svg{ width: 20px; height: 20px; opacity: .95; }

.icon-gold svg{ stroke: rgba(246,196,69,.95); }
.icon-green svg{ stroke: rgba(60,255,140,.95); }
.icon-red  svg{ stroke: rgba(255,90,90,.95); }
.icon-ice  svg{ stroke: rgba(180,220,255,.95); }
.icon-slate svg{ stroke: rgba(120,140,160,.95); }

.card p{ color: rgba(36,55,70,.78); }

.btn-row{
  margin-top: 18px;
  display:flex;
  justify-content:center;
}

/* ==========================================================================
   09 INFO / DASHBOARD TEASER (#info-dashboard)
   ========================================================================== */
#info-dashboard{
  padding: clamp(48px, 6vw, 84px) 0;
  background: var(--bg-sand);
}

#info-dashboard .wrapper{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

#info-dashboard .welcome-card.glass{
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(15,30,43,.10);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15,30,43,.10);
  padding: clamp(18px, 2.6vw, 26px);
}

#info-dashboard .section-title{
  margin: 0 0 10px;
}

#info-dashboard p{
  margin: 0 0 14px;
  max-width: 72ch;
  color: rgba(36,55,70,.80);
}

#info-dashboard .info-list{
  list-style: none;
  margin: 14px 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

#info-dashboard .info-list li{
  position: relative;
  padding: 12px 12px 12px 40px;
  border-radius: 14px;
  background: rgba(36,55,70,.08);
  border: 1px solid rgba(15,30,43,.08);
}

#info-dashboard .info-list li::before{
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(246,196,69,.80);
  box-shadow: 0 0 0 4px rgba(246,196,69,.16);
}

#info-dashboard .info-list strong{
  color: rgba(36,55,70,.92);
  font-weight: 850;
}

#info-dashboard .dashboard-preview{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

#info-dashboard .preview-card{
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(15,30,43,.10);
  box-shadow: 0 8px 18px rgba(15,30,43,.06);
}

#info-dashboard .preview-label{
  display: block;
  font-size: 12px;
  opacity: 0.72;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(36,55,70,.62);
}

#info-dashboard .preview-value{
  display: block;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 4px;
  color: rgba(36,55,70,.92);
}

#info-dashboard .preview-sub{
  display: block;
  font-size: 13px;
  opacity: 0.86;
  color: rgba(36,55,70,.72);
}

#info-dashboard .info-note{
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(15,30,43,.10);
  color: rgba(36,55,70,.78);
}

/* ==========================================================================
   10 KONTAKT (#kontakt)
   ========================================================================== */
#kontakt{
  padding: clamp(48px, 6vw, 84px) 0;
  background: var(--bg-sand);
}

#kontakt .wrapper{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

#kontakt .welcome-card.glass{
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(15,30,43,.10);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15,30,43,.10);
  padding: clamp(18px, 2.6vw, 26px);
}

#kontakt .section-subtitle{
  margin: 10px 0 10px;
  max-width: 72ch;
  color: rgba(36,55,70,.72);
}

#kontakt p{
  margin: 0 0 12px;
  max-width: 72ch;
  color: rgba(36,55,70,.78);
}

#kontakt .btn-row{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

#kontakt .btn-cta{
  min-width: 220px;
}

#kontakt .btn-cta:first-child{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    0 16px 30px rgba(255,183,3,.22);
}

/* ==========================================================================
   11 MOBILE NAV – Drawer + Overlay + großes X
   ========================================================================== */
#mobileNav{ display:none; }
#mobileNav[hidden]{ display:none !important; }
html.nav-open #mobileNav{ display:block !important; }

html.nav-open,
html.nav-open body{ overflow:hidden; }

.mobile-nav{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.mobile-nav__backdrop{
  position:absolute;
  inset:0;
  border:0;
  background: rgba(2,10,16,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mobile-nav__panel{
  position:absolute;
  left: 0;
  top: 0;
  height: 100dvh;
  width: min(360px, 86vw);
  padding: 16px;
  border-radius: 0 18px 18px 0;

  background:
    radial-gradient(900px 320px at 30% -30%, rgba(246,196,69,.10), transparent 60%),
    radial-gradient(900px 320px at 85% -40%, rgba(60,255,140,.08), transparent 55%),
    rgba(8,22,34,.94);

  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 18px 0 60px rgba(0,0,0,.35);

  transform: translateX(-105%);
  transition: transform 260ms var(--ease);
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}

html.nav-open .mobile-nav__panel{ transform: translateX(0); }

.mobile-nav__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 6px 6px 12px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.mobile-nav__title{
  display:block;
  font-weight: 900;
  color: rgba(255,255,255,.92);
  letter-spacing: .01em;
}
.mobile-nav__hint{
  display:block;
  margin-top: 2px;
  font-size: 12.5px;
  color: rgba(255,255,255,.62);
}

.mobile-close{
  width: 48px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(10,25,36,.78);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  position: relative;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 10px 28px rgba(0,0,0,.45);
}

/* X – groß, klar, weiß */
.mobile-close__x{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  opacity: .98;
}

.mobile-close:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.35);
}

/* Links */
.mobile-nav__links{
  display:grid;
  gap: 10px;
  padding: 14px 6px 10px;
}

.mobile-link{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);

  font-weight: 850;
  color: rgba(255,255,255,.92);

  transition: transform var(--t), background var(--t), border-color var(--t);
}

.mobile-link svg{
  width: 18px;
  height: 18px;
  stroke: var(--node-green);
  opacity: .92;
}

.mobile-link:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.20);
}

/* Sticky CTA im Drawer */
.mobile-nav__cta{
  position: sticky;
  bottom: 0;
  padding: 12px 6px calc(10px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(8,22,34,0) 0%, rgba(8,22,34,.92) 30%, rgba(8,22,34,.98) 100%);
  display:grid;
  gap: 10px;
}
.mobile-nav__cta .btn{ width: 100%; }

/* ==========================================================================
   BACK TO TOP – FINAL
   ========================================================================== */
.back-to-top{
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 999;

  width: 46px;
  height: 46px;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(180deg, #ffd45a 0%, #f2b705 100%);
  color: #1b1b1b;

  border: none;
  cursor: pointer;

  font-size: 20px;
  font-weight: 700;
  line-height: 1;

  box-shadow: 0 12px 26px rgba(0,0,0,0.35);

  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);

  transition:
    opacity 200ms ease,
    transform 200ms ease,
    box-shadow 200ms ease;
}

/* Sichtbar */
.back-to-top.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Hover */
.back-to-top:hover{
  box-shadow: 0 16px 34px rgba(0,0,0,0.45);
  transform: translateY(-2px);
}

/* ==========================================================================
   13 RESPONSIVE
   ========================================================================== */
@media (min-width: 981px){
  .main-nav{ display:flex; }
  .nav-toggle{ display:none; }
}

@media (max-width: 980px){
  .main-nav{ display:none; }
  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  .hero{ padding: 108px 0 64px; }
  .hero-subline{ display:none; }
  .hero h1,
  .hero-title{ font-size: clamp(30px, 7.5vw, 44px); }

  .cards-grid{ grid-template-columns: 1fr; }

  #startseite{ padding-top: 56px; }
  #startseite .welcome-box{ padding: 26px 18px; }
  #startseite .welcome-grid{ grid-template-columns: 1fr; gap: 18px; }
  #startseite .welcome-text p{ max-width: 100%; }
  #startseite .welcome-media img{
    aspect-ratio: 4 / 3;
    object-position: 50% 40%;
  }
}

@media (max-width: 680px){
  #info-dashboard .dashboard-preview{ grid-template-columns: 1fr; }
}

@media (max-width: 520px){
  .header-inner{ padding: 12px 0; }
  .brand img{ width: 122px; }
  #kontakt .btn-cta{ min-width: 0; width: 100%; }
}
/* ==========================================================================
   GLOBAL: PAGE HERO (Pattern für Unterseiten)
   ========================================================================== */
.page-hero{
  position: relative;
  isolation: isolate;
  overflow: hidden;

  margin: 0;
  border-radius: 0;
  min-height: clamp(220px, 32vh, 340px);

  display: grid;
  align-items: center;
}

.page-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: var(--page-hero-img) center/cover no-repeat;
  transform: scale(1.10);
  filter: saturate(1.04) contrast(1.05);
  z-index: -2;
}

.page-hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index: -1;
  background:
    radial-gradient(900px 420px at 18% 30%, rgba(0,0,0,.55), rgba(0,0,0,0) 60%),
    radial-gradient(900px 420px at 82% 25%, rgba(0,0,0,.40), rgba(0,0,0,0) 55%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.22) 55%, rgba(0,0,0,.62) 100%);
}

.page-hero__inner{
  padding: 56px 26px;
  text-align: center;
  max-width: 90ch;
}

/* Titel + Text im Hero immer weiß */
.page-hero h1,
.page-hero h2,
.page-hero h3,
.page-hero p,
.page-hero span,
.page-hero .page-hero__title,
.page-hero .page-hero__lead{
  color: #fff !important;
  text-shadow: 0 16px 38px rgba(0,0,0,.46);
}

.page-hero h1{
  margin: 0 0 12px;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 820;
}

.page-hero p{
  margin: 0 auto;
  max-width: 70ch;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.65;
  text-shadow: 0 10px 26px rgba(0,0,0,.40);
}

.page-hero__trust{
  margin-top: 14px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,.92) !important;
  text-shadow: 0 10px 26px rgba(0,0,0,.35);
  font-weight: 650;
  font-size: 13px;
}

/* ==========================================================================
   Eigentümerbereich – Page-Hero Bild (nur EINMAL!)
   ========================================================================== */
.page-hero--portal{
  --page-hero-img: url("/images/eigentuemer-hero.webp");
}

/* Fokus fürs Motiv */
.page-hero--portal::before{
  background-position: center 35%;
}

/* ==========================================================================
   Auth Section – KEIN Hintergrundbild mehr
   ========================================================================== */
.auth-section{
  padding: clamp(34px, 5vw, 64px) 0;
}

/* Mobile fein */
@media (max-width: 720px){
  .page-hero{
    border-radius: 18px;
    margin: 18px auto 26px;
    min-height: 240px;
  }
  .page-hero__inner{
    padding: 42px 18px;
  }
  .page-hero--portal::before{
    background-position: center 35%;
  }
}

