
:root{
  --surface: rgba(255,255,255,0.96);
  --surface-strong: #ffffff;
  --primary: #1d3557;
  --primary-2: #3f72af;
  --accent: #c98b2b;
  --accent-2: #e6b85c;
  --text: #1f2933;
  --muted: #5e6c7a;
  --border: #d9e5ef;
  --shadow: 0 14px 28px rgba(29,53,87,0.10);
  --radius: 18px;
  --max: 1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Verdana, Arial, sans-serif;
  color:var(--text);
  line-height:1.6;
  background:
    radial-gradient(circle at top right, rgba(201,139,43,0.10), transparent 24%),
    radial-gradient(circle at top left, rgba(63,114,175,0.10), transparent 28%),
    linear-gradient(180deg, #edf4fb 0%, #f8fbfe 38%, #f4f8fc 100%);
}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
.container{width:min(var(--max), calc(100% - 24px));margin:0 auto}

/* Kopfbereich */
.topbar{
  position:sticky;top:0;z-index:20;
  backdrop-filter:blur(12px);
  background:rgba(248,251,254,0.94);
  border-bottom:1px solid rgba(29,53,87,0.10);
}
.topbar-inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;padding:18px 0;
}
.brand{
  display:flex;flex-direction:column;gap:2px;
  text-decoration:none;line-height:1.3;
}
.brand strong{
  color:var(--primary);
  font-size:1.6rem;
  letter-spacing:0.02em;
  font-weight:700;
}
.brand span{
  color:var(--muted);
  font-size:1.05rem;
  letter-spacing:0.04em;
}
.name{
  font-size:1.25rem;
  font-weight:600;
  color:var(--primary);
  letter-spacing:0.5px;
  position:relative;
  display:inline-block;
  margin-top:4px;
}
.name::after{
  content:"";
  display:block;
  width:100%;
  height:3px;
  background:linear-gradient(90deg, var(--accent), var(--accent-2));
  margin-top:6px;
  border-radius:2px;
}
.nav{
  display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;
}
.nav a{
  text-decoration:none;
  color:var(--primary);
  font-size:1.1rem;
  padding:8px 12px;
  border-radius:999px;
  transition:background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.nav a:hover,
.nav a.active{
  background:linear-gradient(180deg, rgba(29,53,87,0.08), rgba(201,139,43,0.10));
  color:var(--primary);
  transform:translateY(-1px);
}

/* Hero / obere Blöcke */
.hero{padding:24px 0 18px}
.hero-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  align-items:stretch;
}
.hero-grid.with-image{
  display:flex;
  align-items:stretch;
  gap:8px;
}
.hero-grid.with-image .hero-card{
  flex:1 1 auto;
  min-width:0;
}
.hero-grid.with-image .image-card{
  flex:0 0 320px;
  width:320px;
  max-width:320px;
  min-height:220px;
  align-self:stretch;
}
.hero-grid.with-image .image-card.portrait{
  flex-basis:340px;
  width:340px;
  max-width:340px;
  min-height:320px;
}
.hero-card,
.image-card,
.section-card,
.contact-card,
.mini-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.hero-card{
  padding:20px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:linear-gradient(180deg, #ffffff 0%, #eaf3fb 100%);
}
.image-card{
  overflow:hidden;
  position:relative;
  background:#dfe8f1;
}
.image-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.image-card.portrait img{
  object-fit:contain;
  object-position:center top;
  background:linear-gradient(180deg, #eef3f8 0%, #f8fafc 100%);
  padding:10px;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  width:fit-content;
  padding:7px 12px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(201,139,43,0.18), rgba(201,139,43,0.08));
  color:#8a5a12;
  font-weight:700;
  font-size:0.78rem;
  letter-spacing:0.05em;
  text-transform:uppercase;
  margin-bottom:12px;
}
h1{
  margin:0 0 12px;
  font-size:clamp(1.45rem, 2.2vw, 2rem);
  line-height:1.2;
  color:var(--primary);
  max-width:24ch;
  font-weight:700;
}
h2{
  margin:0 0 8px;
  color:var(--primary);
  font-size:clamp(1.22rem, 1.7vw, 1.55rem);
  line-height:1.25;
  font-weight:700;
}
h3,.mini-card h4{
  margin:0 0 10px;
  color:var(--primary);
  font-size:1.02rem;
  line-height:1.35;
}
.hero-card p,
.section-head p,
.section-card p,
.section-card li,
.contact-card p,
.contact-item span,
.contact-item a,
.mini-card p{
  color:var(--muted);
  font-size:0.96rem;
}
.hero-card p{margin:0 0 12px}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:6px;
}

/* Buttons */
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 14px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  font-size:0.92rem;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}
.button.primary{
  background:linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color:#fff;
  box-shadow:0 10px 24px rgba(32,55,84,0.18);
}
.button.secondary{
  background:linear-gradient(180deg, rgba(201,139,43,0.16), rgba(201,139,43,0.08));
  color:#8a5a12;
}
.button:hover{transform:translateY(-2px)}

/* Inhaltsbereiche */
.section{padding:18px 0 0}
.section-head{margin-bottom:12px}
.grid-3{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
}
.grid-2{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:12px;
}
.section-card,
.contact-card{
  padding:18px;
  background:linear-gradient(180deg, #ffffff 0%, #f2f7fc 100%);
}
.section-card ul{
  margin:10px 0 0;
  padding-left:18px;
}
.section-card li{
  margin-bottom:4px;
  line-height:1.4;
}
.quote{
  margin-top:16px;
  padding:16px 18px;
  border-left:4px solid var(--accent);
  background:linear-gradient(180deg, rgba(201,139,43,0.14), rgba(201,139,43,0.06));
  border-radius:0 14px 14px 0;
  color:var(--muted);
  font-size:0.95rem;
}

/* Kontaktbereich Premium */
.contact-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.contact-card{flex:1}
.contact-list{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.contact-item{margin-bottom:8px}
.contact-item strong{
  display:block;
  color:var(--primary);
  margin-bottom:1px;
  font-size:0.94rem;
}
.kontakt-bild-wrap{
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.kontakt-bild{
  max-width:260px;
  width:100%;
  border-radius:10px;
  box-shadow:0 10px 25px rgba(0,0,0,0.1);
}

/* Kleine Bildkarten */
.image-strip{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
  margin-top:18px;
}
.mini-card{
  overflow:hidden;
  background:var(--surface-strong);
}
.mini-card img{
  width:100%;
  height:180px;
  object-fit:cover;
}
.mini-card .copy{padding:14px 16px 16px}

/* Footer */
.footer{
  padding:20px 0 28px;
  color:var(--muted);
  font-size:0.88rem;
}
.footer .container{
  border-top:1px solid var(--border);
  padding-top:12px;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:12px;
}

/* Tablet / kleiner Desktop */
@media (max-width:980px){
  .hero-grid.with-image{display:block}
  .hero-grid.with-image .image-card,
  .hero-grid.with-image .image-card.portrait{
    width:100%;
    max-width:100%;
    min-height:240px;
    margin-top:12px;
  }
  .hero-grid.with-image .image-card img{
    width:100%;
    height:auto;
  }
  .grid-3,
  .grid-2,
  .image-strip,
  .contact-wrap{
    grid-template-columns:1fr;
    display:grid;
  }
  .topbar-inner{
    align-items:flex-start;
    flex-direction:column;
  }
  .nav{justify-content:flex-start}
}

/* Smartphone */
@media (max-width:800px){
  .container{width:calc(100% - 16px)}
  .topbar{background:rgba(248,251,254,0.96)}
  .topbar-inner{padding:14px 0}
  .brand strong{font-size:1.2rem}
  .brand span{
    font-size:0.85rem;
    color:#667789;
  }
  .nav{gap:4px}
  .nav a{
    font-size:0.92rem;
    padding:6px 8px;
    background:rgba(29,53,87,0.04);
  }
  .hero-card,
  .section-card,
  .contact-card{
    padding:14px;
    border-radius:14px;
  }
  .hero-card p,
  .section-card p,
  .section-card li,
  .contact-card p{
    font-size:0.94rem;
    line-height:1.45;
  }
  .section-head{margin-bottom:10px}
  .section-card ul{
    padding-left:14px;
    margin-top:8px;
  }
  .section-card li{
    margin-bottom:4px;
    font-size:0.93rem;
    line-height:1.35;
  }
  .section-card a{display:inline}
  .button{
    min-height:40px;
    padding:0 12px;
    font-size:0.9rem;
  }
  .contact-wrap{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }
  .kontakt-bild-wrap{
    width:100%;
    justify-content:center;
    margin-top:15px;
  }
  .kontakt-bild{max-width:180px}
  .footer{
    padding:16px 0 24px;
    font-size:0.8rem;
  }
}


/* ===== Endkorrektur: Startseitenbild, Kontaktfoto kleiner, Mobile-Bilder sichtbar ===== */

.hero-grid.with-image{
  display:flex;
  align-items:stretch;
  gap:10px;
}

.hero-grid.with-image .hero-card{
  flex:1 1 auto;
  min-width:0;
}

.hero-grid.with-image .image-card{
  flex:0 0 300px;
  width:300px;
  max-width:300px;
  min-height:210px;
  align-self:stretch;
}

.image-card.small{
  max-width:300px;
  width:300px;
  min-height:210px;
}

.image-card.portrait{
  flex:0 0 260px !important;
  width:260px !important;
  max-width:260px !important;
  
  align-self:center;
}

.image-card.portrait img{
  object-fit:contain;
  width:100%;
  height:100%;
  padding:8px;
}

.kontakt-bild{
  max-width:210px;
}

.kontaktseite .hero-card{
  min-height:260px;
}

.kontaktseite .contact-wrap{
  align-items:flex-start;
}

@media (max-width:980px){
  .hero-grid.with-image{
    display:flex !important;
    flex-direction:column !important;
    gap:12px !important;
  }

  .hero-grid.with-image .hero-card{
    width:100% !important;
  }

  .hero-grid.with-image .image-card,
  .hero-grid.with-image .image-card.small,
  .hero-grid.with-image .image-card.portrait{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    flex:0 0 auto !important;
    min-height:auto !important;
    margin:0 !important;
    align-self:stretch !important;
  }

  .hero-grid.with-image .image-card img,
  .hero-grid.with-image .image-card.small img,
  .hero-grid.with-image .image-card.portrait img{
    display:block !important;
    width:100% !important;
    height:auto !important;
    max-height:none !important;
    object-fit:contain !important;
  }

  .image-card.portrait img{
    max-width:230px !important;
    margin:0 auto !important;
  }

  .kontakt-bild{
    max-width:180px !important;
  }
}

@media (max-width:800px){
  .image-card.small img{
    max-width:100% !important;
  }

  .hero{
    padding-top:18px;
  }
}


/* ===== Korrektur v2: Bilder sicher anzeigen + Name größer ===== */
.name{
  font-size:1.45rem !important;
}

.name::after{
  width:100% !important;
}

.hero-grid.with-image{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 300px !important;
  gap:12px !important;
  align-items:stretch !important;
}

.hero-grid.with-image .hero-card{
  min-width:0 !important;
}

.hero-grid.with-image .image-card,
.hero-grid.with-image .image-card.small{
  display:block !important;
  width:300px !important;
  max-width:300px !important;
  
  height:auto !important;
  margin:0 !important;
  align-self:stretch !important;
  overflow:hidden !important;
}

.hero-grid.with-image .image-card.portrait{
  display:block !important;
  width:260px !important;
  max-width:260px !important;
  
  margin:0 !important;
  justify-self:end !important;
  align-self:center !important;
  overflow:hidden !important;
}

.hero-grid.with-image .image-card img,
.hero-grid.with-image .image-card.small img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  
  object-fit:cover !important;
}

.hero-grid.with-image .image-card.portrait img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  
  object-fit:contain !important;
}

@media (max-width:980px){
  .name{
    font-size:1.28rem !important;
  }

  .hero-grid.with-image{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
  }

  .hero-grid.with-image .image-card,
  .hero-grid.with-image .image-card.small,
  .hero-grid.with-image .image-card.portrait{
    width:100% !important;
    max-width:100% !important;
    min-height:auto !important;
    height:auto !important;
    justify-self:stretch !important;
  }

  .hero-grid.with-image .image-card img,
  .hero-grid.with-image .image-card.small img,
  .hero-grid.with-image .image-card.portrait img{
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    object-fit:contain !important;
  }

  .hero-grid.with-image .image-card.portrait img{
    max-width:230px !important;
    margin:0 auto !important;
  }
}

@media (max-width:800px){
  .name{
    font-size:1.2rem !important;
  }
}


/* =========================================================
   FINALER BILD-FIX V3
   Neue unabhängige Hero-Bildstruktur.
   Diese Regeln überschreiben ältere .image-card/.hero-grid-Regeln.
   ========================================================= */

.name{
  font-size:1.45rem !important;
}

.name::after{
  width:100% !important;
}

.hero-layout{
  display:grid !important;
  grid-template-columns:minmax(0, 1fr) 300px !important;
  gap:14px !important;
  align-items:stretch !important;
}

.hero-layout .hero-card{
  min-width:0 !important;
}

.hero-photo{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  width:300px !important;
  max-width:300px !important;
  
  border:1px solid var(--border, #d9e5ef) !important;
  border-radius:var(--radius, 18px) !important;
  overflow:hidden !important;
  background:#dfe8f1 !important;
  box-shadow:var(--shadow, 0 14px 28px rgba(29,53,87,0.10)) !important;
  align-self:stretch !important;
}

.hero-photo img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  
  object-fit:cover !important;
  object-position:center !important;
}

.hero-photo-portrait{
  width:240px !important;
  max-width:240px !important;
  
  justify-self:end !important;
  align-self:center !important;
}

.hero-photo-portrait img{
  
  object-fit:contain !important;
  padding:8px !important;
  background:linear-gradient(180deg,#eef3f8 0%,#f8fafc 100%) !important;
}

/* Links/Impressum Bilder nicht zu dominant */
.links .hero-photo,
.impressum .hero-photo{
  width:280px !important;
  max-width:280px !important;
}

/* Mobile / Responsive: Bilder sicher sichtbar */
@media (max-width:980px){
  .name{
    font-size:1.28rem !important;
  }

  .hero-layout{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
  }

  .hero-photo,
  .hero-photo-portrait,
  .links .hero-photo,
  .impressum .hero-photo{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    height:auto !important;
    justify-self:stretch !important;
    align-self:auto !important;
  }

  .hero-photo img,
  .hero-photo-portrait img{
    display:block !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    object-fit:contain !important;
  }

  .hero-photo-portrait img{
    max-width:220px !important;
    margin:0 auto !important;
  }
}

@media (max-width:800px){
  .name{
    font-size:1.2rem !important;
  }

  .nav{
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    white-space:nowrap !important;
    width:100% !important;
    gap:4px !important;
  }

  .nav a{
    flex:0 0 auto !important;
    font-size:0.82rem !important;
    padding:6px 7px !important;
  }
}


/* FINAL SAFE IMAGE FIX */
.hero-photo{
  min-height:200px !important;
}

.hero-photo img{
  width:100% !important;
  height:auto !important;
  display:block !important;
}
