@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700; /* covers 300, 400, 600, 700 */
  font-display: swap;
  src: url('/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF;
}

:root{
  --accent-dark: #0d47a1;
  --accent-mid: #1976d2;
  --accent-light:#42a5f5;
  --text: #09324a;
  --muted: #586973;
  --max-width: 1100px;
  --photo-max-height-desktop: 600px;
  --photo-gap: 48px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:'Montserrat',sans-serif;
  background:#fff;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.55;
  overflow-x:hidden;
}

a{color:inherit}
section{ padding:80px 20px; max-width:var(--max-width); margin:0 auto; text-align:left; }
h1,h2,h3{ font-weight:700; color:var(--accent-dark); margin:0 0 12px 0 }
h1{ font-size:3rem }
h2{ font-size:2rem }
p{ color:var(--muted); margin:0 0 18px 0; font-weight:300 }
.divider{ height:4px; width:80px; background:var(--accent-dark); margin:20px 0 36px; border-radius:3px }

.hero{
  position:relative;
  min-height:100vh;
  padding:24px 18px 28px;
  display:block;
  text-align:center;
  background:linear-gradient(135deg, var(--accent-dark), var(--accent-mid), var(--accent-light));
  background-size:400% 400%;
  animation:gradientShift 15s ease infinite;
  overflow:visible;
}
@keyframes gradientShift{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

.hero-inner{
  position:relative;
  z-index:10;
  display:block;
  margin: 6vh auto 0;
  max-width: var(--max-width);
  padding: 1.6rem 1.6rem;
  background: rgba(255,255,255,0.06);
  border-radius:12px;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
  text-align:center;
}

.hero-title{
  margin:0;
  font-size:clamp(2rem, 5.2vw, 2.4rem);
  color:#fff;
  letter-spacing:-0.01em;
}

.hero-sub{
  margin-top:8px;
  color:rgba(255,255,255,0.92);
  font-size:clamp(0.98rem, 3.2vw, 1.25rem);
  font-weight:300;
}

.hero-scroll{ margin-top:12px; color:rgba(255,255,255,0.95); font-size:0.92rem; text-decoration:underline }

.corner-photo{
  position:absolute;
  left:0;
  bottom:0;
  z-index:20;
  pointer-events:none;
  width: clamp(220px, 62vw, 680px);
  height:auto;
  transform: translateX(-6px);
  will-change: width, transform;
  object-fit:contain;
  max-height: calc(100vh - 120px);
}

@media (max-width:900px){
  .hero-inner{
    margin-right: calc( (100vw - clamp(220px, 62vw, 680px)) / 6 );
    padding-left: 1.8rem;
    padding-right: 1.8rem;
  }
}

@media (max-width: 600px){
  .hero-inner{
    margin-top: 8vh;
    margin-left: auto;
    margin-right: auto;
    padding: 1.8rem;
    width: calc(100% - 40px);
    max-width: 500px;
  }

  .hero{
    padding: 20px;
  }

  .corner-photo{
    width: clamp(240px, 72vw, 520px);
    max-height: calc(100vh - 160px);
    transform: translateX(-4px);
  }
}

@media (min-width:901px){
  .hero{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    padding: 64px 56px;
    text-align:left;
  }

  .corner-photo{
    position:absolute;
    left:0;
    bottom:0;
    height: var(--photo-max-height-desktop);
    width: auto;
    max-width: 55vw;
    transform: translateX(-12px);
  }

  .hero-inner{
    width: min(56%, 720px);
    max-width: calc(100% - (var(--photo-max-height-desktop) + var(--photo-gap)));
    margin-right: calc(var(--photo-gap));
    transform:none;
    text-align:left;
    padding: 2rem 1.6rem;
  }

  .hero-title{ font-size: 3rem; color:#fff }
  .hero-sub{ color: rgba(255,255,255,0.95); font-size:1.05rem }
  .hero-scroll{ text-align:right }
}

/* language switcher */
.language-switcher {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 70;
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 8px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}
.language-switcher button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  padding: 6px 10px;
  cursor: pointer;
  color: #ffffff;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
}
.language-switcher svg { width: 34px; height: 34px; display:block }
/* make black parts of inline SVG transparent */
.language-switcher svg [fill="#000"],
.language-switcher svg [fill="#000000"],
.language-switcher svg [fill="black"] { fill: transparent !important }

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 8px;
  min-width: 190px;
  background: #ffffff;
  color: var(--text);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(6, 24, 64, 0.16);
  overflow: hidden;
  list-style: none;
  padding: 6px;
  border: 1px solid rgba(9,50,74,0.06);
}

.lang-menu.show { display: block; }

.lang-menu a {
  display: flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  text-decoration:none;
  color:var(--text);
  font-weight:500;
  border-radius:8px;
}

.lang-menu a:hover, .lang-menu a:focus {
  background: rgba(9,50,74,0.04);
  outline: none;
}

.lang-code {
  display:inline-block;
  font-size:0.9rem;
  color: rgba(255,255,255,0.95);
  padding: 4px 6px;
  border-radius:6px;
  background: rgba(0,0,0,0.12);
}

@media (max-width: 900px){
  .language-switcher { top: 12px; right: 12px; }
  .language-switcher svg { width: 30px; height: 30px }
}

/* FAMILY PHOTO */
#family::after { content: ""; display: table; clear: both; }
.family-photo {
  float: right;
  display: block;
  width: 36%;
  max-width: 380px;
  height: auto;
  max-height: 420px;
  margin-left: 24px;
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(6,24,64,0.12);
  object-fit: cover;
}
@media (max-width: 900px) {
  .family-photo {
    float: none;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 0 18px 0;
    max-height: none;
    object-fit: cover;
  }
}

.site-footer{
  background: var(--accent-dark);
  color: #fff;
  padding: 48px 20px;             /* luft um den inhalt */
  margin-top: 28px;
  /* entferne border-radius, wenn du full-bleed willst.
     wenn du abgerundete ecken moechtest, dann nur auf .footer-inner anwenden */
  border-radius: 0;
  position: relative;
  overflow: visible;
}

/* innerer, zentrierter Container (max-width) */
.site-footer .footer-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 6px 12px;
  box-sizing: border-box;
}

/* die beiden Spalten (responsive) */
.site-footer .impressum,
.site-footer .privacy {
  flex: 1 1 320px;     /* wachsen, schrumpfen, basis 320px */
  min-width: 240px;
  box-sizing: border-box;
  text-align: center;  /* mobile: zentriert */
}

/* Desktop: Text linksbündig, privacy etwas schmaler */
@media (min-width: 901px) {
  .site-footer .impressum,
  .site-footer .privacy {
    text-align: left;
  }
  .site-footer .privacy { flex: 0 0 360px; max-width:360px; }
}

/* Titel und text styling */
.site-footer h3, .site-footer h4 {
  color: #fff;
  margin: 0 0 10px 0;
  font-weight: 700;
}
.site-footer p {
  color: rgba(255,255,255,0.92);
  margin: 0 0 14px 0;
  font-weight: 300;
  line-height: 1.6;
}

/* Link styling */
.site-footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Fusszeile unten */
.site-footer .footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 20px;
  padding-top: 18px;
  text-align: center;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
}

/* optional: abgerundeter inner container (falls du runde ecken moechtest) */
.site-footer .footer-inner {
  border-radius: 12px;    /* nur auf innerem container */
  padding: 28px 18px;
  background: linear-gradient(0deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
}

/* kleine responsive tweaks */
@media (max-width: 600px){
  .site-footer{ padding: 28px 14px; }
  .site-footer .footer-inner{ gap: 16px; padding: 18px 6px; }
}



main{ background:#fff }
.timeline{ border-left:3px solid var(--accent-dark); padding-left:20px; margin-top:12px; position:relative }
.timeline::before{ content:""; position:absolute; left:-9px; top:0; bottom:0; width:15px; background:linear-gradient(to bottom,var(--accent-dark),transparent); border-radius:8px }
.timeline-item{ margin-bottom:34px }
.vision{ background:linear-gradient(135deg,#e9f3ff,#fbfdff); border-radius:14px; padding:46px 28px; box-shadow:0 8px 20px rgba(0,0,0,0.04) }
.vision ul{ list-style:none; padding:0; margin-top:18px }
.vision li{ margin:10px 0; color:var(--muted); font-weight:400 }
.vision li::before{ content:"✔"; color:var(--accent-dark); margin-right:10px }

html{ scroll-behavior:smooth }

/* prevent horizontal scrolling */
html, body {
  overflow-x: hidden !important;
  touch-action: pan-y !important;
  overscroll-behavior-x: none !important;
}

/* clip hero overflow */
header.hero { overflow-x: hidden !important; overflow-y: visible; position: relative !important; }
header.hero .corner-photo { max-width: none !important; right: auto !important; }

/* iOS tweak */
html, body, header.hero { -webkit-overflow-scrolling: auto !important; }
