:root{
  --bg: #eef3f6;
  --card: #ffffff;
  --text: #0c1b2a;
  --muted: #586575;
  --nav: #072a3a;
  --nav2: #041f2b;
  --line: rgba(12,27,42,.10);
  --shadow: 0 14px 40px rgba(0,0,0,.10);
  --r-xl: 26px;
  --r-lg: 18px;
  --r-md: 14px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: var(--bg);
}

/* HEADER */
.site-header{
  background: linear-gradient(180deg, var(--nav) 0%, var(--nav2) 100%);
  color:#fff;
}

.header-top{
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 260px;
}

.brand-logo{
  width: 64px;
  height: 64px;
  object-fit: contain; /* Logo niemals abschneiden */
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.25));
}

.brand-text .brand-name{
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 22px;
  line-height: 1.1;
}
.brand-text .brand-sub{
  font-size: 12px;
  opacity: .9;
  margin-top: 3px;
}

.header-contacts{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.chip{
  color:#fff;
  text-decoration:none;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}
.chip:hover{ background: rgba(255,255,255,.12); }

.main-nav{
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(0,0,0,.25);
}
.nav-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 18px;
  display:flex;
  gap:22px;
  flex-wrap:wrap;
  align-items:center;
}
.nav-link{
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size: 14px;
  opacity:.95;
}
.nav-link:hover{ opacity:1; text-decoration: underline; }

/* LAYOUT */
.page{
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
}

.section{ margin-top: 18px; }

.card{
  background: var(--card);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* HERO – nix abschneiden: Vordergrund contain, Hintergrund weich füllt */
.hero{
  overflow:hidden;
}

.hero-media{
  position:relative;
  border-radius: var(--r-xl);
  overflow:hidden;
  height: clamp(320px, 44vw, 520px);
  background: #dfe7ee;
}

/* weicher Hintergrund, damit es „voll“ wirkt ohne Cropping */
.hero-media::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: url("images/website/hero.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(18px);
  transform: scale(1.08);
  opacity: .55;
}

.hero-media img{
  position:relative;
  z-index:1;
  width:100%;
  height:100%;
  object-fit: contain;       /* WICHTIG: nichts abschneiden */
  object-position: center;
}

.hero-caption{
  margin: 14px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  text-align:center;
  color: var(--text);
  font-weight: 600;
}

/* TILES */
.tiles{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tile{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
  background: var(--card);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  overflow:hidden;
}

.tile-media{
  height: 170px;
  background: #f2f5f8;
  display:flex;
  align-items:center;
  justify-content:center;
}

.tile-media img{
  width:100%;
  height:100%;
  object-fit: contain;  /* nichts abschneiden */
  object-position:center;
}

.tile-body{
  padding: 14px 14px 16px;
}

.tile-body h3{
  margin: 0 0 6px;
  font-size: 18px;
}
.tile-body p{
  margin:0;
  color: var(--muted);
  line-height: 1.35;
  font-size: 13.5px;
}

/* ABOUT / GALLERY */
.about{
  padding: 22px;
}
.about h2{
  text-align:center;
  margin: 0 0 6px;
  font-size: 28px;
}
.about-sub{
  text-align:center;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.5;
}

.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item{
  border-radius: var(--r-lg);
  overflow:hidden;
  border: 1px solid var(--line);
  background: #f2f5f8;
  height: 220px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.gallery-item img{
  width:100%;
  height:100%;
  object-fit: contain; /* nichts abschneiden */
  object-position:center;
}

/* CONTACT */
.contact{ padding: 22px; }
.contact-grid{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 18px;
  align-items:center;
}

.contact-box{
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  background: #f7fafc;
}

.btn{
  display:inline-block;
  text-decoration:none;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid rgba(0,0,0,.08);
}
.btn-primary{
  background: #0b2c3c;
  color:#fff;
}
.btn-primary:hover{ filter: brightness(1.05); }

.contact-lines{
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.contact-lines a{ color: #0b2c3c; font-weight: 700; text-decoration:none; }
.contact-lines a:hover{ text-decoration: underline; }

/* FOOTER */
.footer{
  padding: 18px;
  color: rgba(255,255,255,.85);
  background: linear-gradient(180deg, var(--nav2), #021720);
  margin-top: 18px;
}
.footer a{ color:#fff; text-decoration:none; opacity:.95; }
.footer a:hover{ text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 1020px){
  .tiles{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .tiles{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: 1fr; }
  .hero-caption{ border-radius: var(--r-lg); }
}
/* LEGAL PAGES (Impressum / Datenschutz) */
.legal{
  padding: 22px;
}

.legal h1{
  margin: 0 0 10px;
  font-size: 30px;
}

.legal-note{
  margin: 0 0 18px;
  color: var(--muted);
}

.legal-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.legal-block{
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #f7fafc;
  padding: 16px;
}

.legal-block h2{
  margin: 0 0 8px;
  font-size: 16px;
}

.legal-block p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.legal a{
  color: #0b2c3c;
  font-weight: 800;
  text-decoration: none;
}

.legal a:hover{
  text-decoration: underline;
}

.legal-actions{
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 900px){
  .legal-grid{
    grid-template-columns: 1fr;
  }
}
