*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:Inter,Segoe UI,Arial,sans-serif;background:linear-gradient(180deg,var(--surface),#f5ede2 100%);color:var(--text);line-height:1.6}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
button,input,textarea{font:inherit}
.container{width:min(1180px,calc(100% - 32px));margin:0 auto}

.topbar{position:relative;top:auto;z-index:40;background:rgba(248,243,236,.88);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}
.topbar-inner{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 0}
.brandmark{font-weight:700;letter-spacing:.02em}
.mainnav{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.mainnav a{padding:10px 14px;border-radius:999px;color:var(--muted)}
.mainnav a.active,.mainnav a:hover,.adminlink{background:rgba(181,139,98,.12);color:var(--text)}

.hero-slider{
  position:relative;
  height:calc(100vh - 74px);
  min-height:620px;
  max-height:860px;
  overflow:hidden;
}

.hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity .7s ease;
  background-size:contain;
  background-repeat:no-repeat;
  background-position:center center;
  background-color:#b8b0a3;
}

.hero-slide.active{opacity:1}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(18,16,14,.04),rgba(18,16,14,.18)),
    linear-gradient(90deg,rgba(14,12,10,.16),rgba(14,12,10,.04) 40%,rgba(14,12,10,.08) 100%);
}

.hero-home{
  height:calc(100vh - 74px);
  min-height:620px;
  max-height:860px;
}

.hero-home .hero-slide{
  height:calc(100vh - 74px);
  min-height:620px;
  max-height:860px;
}

.hero-home-layout{
  position:relative;
  z-index:2;
  height:calc(100vh - 74px);
  min-height:620px;
  max-height:860px;
  display:grid;
  grid-template-columns:minmax(0, 620px) minmax(260px, 360px);
  justify-content:space-between;
  align-items:end;
  gap:20px;
  padding-top:54px;
  padding-bottom:56px;
}

.hero-home-left{
  align-self:center;
  max-width:620px;
  color:#fff;
}

.hero-home-eyebrow{
  display:inline-block;
  margin-bottom:10px;
  color:rgba(255,255,255,.92);
  text-shadow:0 2px 8px rgba(0,0,0,.22);
}

.hero-home-title{
  margin:0 0 14px;
  font-size:clamp(2.4rem,4.8vw,4.3rem);
  line-height:1.0;
  letter-spacing:-.03em;
  font-weight:800;
  color:#fff;
  text-shadow:0 5px 18px rgba(0,0,0,.20);
  max-width:600px;
}

.hero-home-text{
  margin:0 0 16px;
  max-width:580px;
  font-size:1.02rem;
  line-height:1.5;
  color:rgba(255,255,255,.97);
  text-shadow:0 2px 10px rgba(0,0,0,.18);
}

.hero-home-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.hero-home-actions .button{
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}

.hero-home-info{
  align-self:end;
  justify-self:end;
  width:min(360px,100%);
  padding:16px 18px;
  border-radius:22px;
  background:rgba(38,42,46,.28);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 14px 36px rgba(0,0,0,.14);
  color:#fff;
  margin-bottom:8px;
}

.hero-home-info-eyebrow{
  margin-bottom:8px;
  font-size:.74rem;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:rgba(255,255,255,.78);
}

.hero-home-info h3{
  margin:0 0 10px;
  font-size:1.12rem;
  line-height:1.22;
  color:#fff;
}

.hero-home-info p{
  margin:0;
  font-size:.96rem;
  line-height:1.5;
  color:rgba(255,255,255,.92);
}

.hero-home-info-list{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:7px;
}

.hero-home-info-list li{
  position:relative;
  padding-left:0;
  font-size:.96rem;
  line-height:1.45;
  color:rgba(255,255,255,.94);
}

.hero-home-info-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  color:rgba(255,255,255,.90);
}

.hero-home-dots{
  position:absolute;
  z-index:3;
  left:0;
  right:0;
  bottom:18px;
  display:flex;
  gap:10px;
}

.eyebrow{display:inline-block;text-transform:uppercase;letter-spacing:.18em;font-size:.78rem;opacity:.9}
.dot{width:12px;height:12px;border-radius:50%;border:none;background:rgba(255,255,255,.45);cursor:pointer}
.dot.active{background:#fff}

.section{padding:72px 0}
.section.alt{background:rgba(255,250,244,.7)}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:24px}
.section-head h2,.split-card h2,.page-hero h1{margin:0;font-size:clamp(2rem,3vw,3.2rem);line-height:1.06}
.lead{font-size:1.08rem;color:var(--muted)}
.split-card{display:grid;grid-template-columns:1.2fr .8fr;gap:24px;align-items:center}
.split-card.align-start{align-items:start}
.soft-panel,.info-card,.pill-card,.gallery-card,.admin-card,.request-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.soft-panel{padding:28px}
.pill-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.pill-card{padding:22px;font-weight:600}
.card-grid{display:grid;gap:20px}
.card-grid.three{grid-template-columns:repeat(3,1fr)}
.info-card{padding:28px}
.info-card h3{margin:0 0 10px}
.cta-band{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:28px;border-radius:28px;background:linear-gradient(135deg,rgba(181,139,98,.12),rgba(231,215,198,.9));border:1px solid var(--line)}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 18px;border-radius:999px;border:none;background:var(--brand);color:#fff;cursor:pointer;box-shadow:var(--shadow)}
.button.secondary{background:#fff;color:var(--text);border:1px solid var(--line)}
.button.danger{background:#8b3b27}
.button-row{display:flex;gap:10px;align-items:center}
.button-row.wrap{flex-wrap:wrap}

.page-hero{padding:90px 0 48px;background:linear-gradient(160deg,rgba(231,215,198,.95),rgba(248,243,236,.75));border-bottom:1px solid var(--line)}
.page-hero p{max-width:760px;font-size:1.1rem;color:var(--muted)}
.small-hero{min-height:40vh;display:flex;align-items:center}
.masonry-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.gallery-card{overflow:hidden;min-height:220px}
.gallery-card img{width:100%;height:100%;object-fit:cover}
.badge-cloud{display:flex;flex-wrap:wrap;gap:12px}
.badge-cloud span{padding:12px 16px;border-radius:999px;background:rgba(181,139,98,.14);border:1px solid var(--line)}
.features-list ul,.plain-list{margin:0;padding-left:18px}
.map-wrap iframe{width:100%;height:420px;border:0;border-radius:24px;box-shadow:var(--shadow)}

.inquiry-form,.admin-form,.upload-form,.stack-gap{display:flex;flex-direction:column;gap:16px}
.grid-2,.grid-3,.grid-4,.sub-grid{display:grid;gap:16px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.sub-grid{grid-template-columns:1fr auto}
.sub-grid .full{grid-column:1 / -1}

label{display:flex;flex-direction:column;gap:8px;font-weight:600}
input,textarea{width:100%;padding:13px 14px;border-radius:18px;border:1px solid var(--line);background:#fffdf9;color:var(--text)}
textarea{resize:vertical}
.success-box{padding:16px 18px;border-radius:18px;background:rgba(119,168,131,.18);border:1px solid rgba(119,168,131,.35);margin-bottom:16px}

.footer{padding:34px 0 44px;border-top:1px solid var(--line);background:rgba(255,250,244,.6)}
.footer-inner{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}
.footer-links{display:flex;gap:18px;flex-wrap:wrap}

.admin-shell{display:grid;grid-template-columns:280px 1fr;min-height:100vh}
.admin-sidebar{padding:24px 18px;border-right:1px solid var(--line);background:rgba(255,250,244,.8);position:sticky;top:0;height:100vh}
.admin-brand{display:block;font-size:1.35rem;font-weight:800;margin-bottom:20px}
.admin-nav{display:flex;flex-direction:column;gap:8px}
.admin-nav a{padding:12px 14px;border-radius:18px;color:var(--muted)}
.admin-nav a.active,.admin-nav a:hover{background:rgba(181,139,98,.12);color:var(--text)}
.admin-main{padding:28px}
.admin-top{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px}
.admin-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-bottom:18px}
.admin-card{padding:24px}
.link-card{transition:transform .18s ease}
.link-card:hover{transform:translateY(-3px)}
.image-admin-list{display:grid;gap:18px;margin-top:20px}
.image-admin-card{display:grid;grid-template-columns:260px 1fr;gap:18px;padding:16px;border-radius:24px;background:rgba(255,255,255,.7);border:1px solid var(--line)}
.image-admin-card img{width:100%;height:100%;min-height:220px;object-fit:cover;border-radius:20px}
.image-admin-body{display:flex;flex-direction:column;gap:16px}
.sticky-save{position:sticky;bottom:14px;display:flex;justify-content:flex-end;padding-top:8px}
.checks label{padding:12px 14px;border-radius:18px;background:#fffdf9;border:1px solid var(--line);flex-direction:row;align-items:center}
.request-list{display:grid;gap:12px}
.request-card{padding:16px}

@media (max-width: 980px){
  .split-card,
  .card-grid.three,
  .pill-grid,
  .masonry-gallery,
  .grid-4,
  .admin-shell,
  .admin-grid,
  .image-admin-card{
    grid-template-columns:1fr
  }

  .hero-slider,
  .hero-home,
  .hero-home .hero-slide{
    height:auto;
    min-height:76vh;
    max-height:none;
  }

  .hero-home-layout{
    height:auto;
    min-height:76vh;
    max-height:none;
    grid-template-columns:1fr;
    justify-content:start;
    align-items:end;
    gap:18px;
    padding-top:84px;
    padding-bottom:64px;
  }

  .hero-home-left{
    max-width:100%;
    align-self:end;
  }

  .hero-home-info{
    justify-self:start;
    width:min(460px, 100%);
    margin-bottom:4px;
  }

  .admin-sidebar{position:relative;height:auto;border-right:none;border-bottom:1px solid var(--line)}
}

@media (max-width: 720px){
  .hero-home-title{
    font-size:clamp(2rem,10vw,3.2rem);
    line-height:1.02;
    max-width:100%;
  }

  .hero-home-text{
    font-size:.98rem;
    max-width:100%;
  }

  .hero-home-actions{
    gap:10px;
  }

  .hero-home-info{
    padding:16px 16px 14px;
    border-radius:20px;
  }

  .grid-2,.grid-3,.sub-grid{grid-template-columns:1fr}
  .cta-band,.footer-inner,.topbar-inner,.admin-top{flex-direction:column;align-items:flex-start}
  .mainnav{gap:6px}
}

.block-title{margin:0 0 14px;font-size:1.1rem}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.stat-box{background:#fffdf9;border:1px solid var(--line);border-radius:20px;padding:18px;display:flex;flex-direction:column;gap:6px}
.stat-box strong{font-size:2rem;line-height:1}
.stat-box span{color:var(--muted)}
.hero-pair{
  position:absolute;
  inset:0;
  display:flex;
}

.hero-pair-img{
  flex:1;
  background-size:cover;
  background-position:center;
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .container, .section, main { padding-top: 10px !important; padding-bottom: 16px !important; }
  .hero, .hero-section, .intro, .top-section { min-height: auto !important; padding-top: 16px !important; padding-bottom: 16px !important; }
  .hero h1, .intro h1 { font-size: 24px !important; line-height: 1.2; margin-bottom: 8px !important; }
  .hero p, .intro p { font-size: 14px; margin-bottom: 10px !important; }
  .button, button { width: 100%; padding: 14px !important; font-size: 15px; border-radius: 12px; }
  img { max-width: 100%; height: auto; border-radius: 12px; }
  .grid, .grid-2, .grid-3, .grid-4 { display: block !important; }
  .grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { margin-bottom: 14px; }
  .admin-main { padding: 12px !important; }
}

@media (max-width: 768px){
  .location-card,
  .home-card,
  .card,
  .soft-panel{
    max-height: none !important;
    overflow: visible !important;
  }

  ul, li{
    overflow: visible !important;
  }
}

@media (max-width: 768px){
  .hero,
  .hero-section,
  .hero-home,
  .hero-home-slide,
  .hero-home-grid,
  .hero-home-copy,
  .hero-home-info,
  .hero-home-card,
  .top-section,
  .intro{
    height:auto !important;
    min-height:unset !important;
    max-height:none !important;
    overflow:visible !important;
  }
}

/* Minimaler Handy-Fix nur fuer die Startseite */
@media (max-width: 768px){
  .hero-slider.hero-home{
    height:auto !important;
    min-height:auto !important;
    max-height:none !important;
    overflow:visible !important;
    padding-bottom:18px !important;
  }

  .hero-slider.hero-home .hero-slide{
    position:relative !important;
    inset:auto !important;
    display:none;
    min-height:auto !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
    background-position:center top !important;
  }

  .hero-slider.hero-home .hero-slide.active{
    display:block !important;
    opacity:1 !important;
  }

  .hero-home-layout{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    gap:16px !important;
    height:auto !important;
    min-height:auto !important;
    max-height:none !important;
    padding-top:72px !important;
    padding-bottom:52px !important;
  }

  .hero-home-left{
    align-self:stretch !important;
    max-width:none !important;
  }

  .hero-home-text{
    margin-bottom:14px !important;
  }

  .hero-home-actions{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
    margin-top:0 !important;
  }

  .hero-home-actions .button{
    width:100% !important;
    justify-content:center !important;
    margin:0 !important;
  }

  .hero-home-info{
    align-self:stretch !important;
    justify-self:stretch !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
  }

  .hero-home-dots{
    position:relative !important;
    bottom:auto !important;
    left:auto !important;
    right:auto !important;
    margin-top:10px !important;
    justify-content:center !important;
  }
}