@charset "utf-8";
/* CSS Document */

html.lenis,html.lenis body{height:auto}.lenis.lenis-smooth [data-lenis-prevent]{overscroll-behavior:contain}.lenis.lenis-stopped{overflow:clip}.lenis.lenis-smooth iframe{pointer-events:none}
/* ============================================================
   ##### Self-hosted webfonts (GDPR-compliant) #####
   Files in /fonts/. Both WOFF2 (modern) and TTF (fallback) sources.
   ============================================================ */

/* eb-garamond-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/eb-garamond-v32-latin-regular.woff2') format('woff2'),
       url('fonts/eb-garamond-v32-latin-regular.ttf') format('truetype');
}

/* eb-garamond-italic - latin */
@font-face {
  font-display: swap;
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/eb-garamond-v32-latin-italic.woff2') format('woff2'),
       url('fonts/eb-garamond-v32-latin-italic.ttf') format('truetype');
}

/* eb-garamond-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/eb-garamond-v32-latin-500.woff2') format('woff2'),
       url('fonts/eb-garamond-v32-latin-500.ttf') format('truetype');
}

/* eb-garamond-500italic - latin */
@font-face {
  font-display: swap;
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 500;
  src: url('fonts/eb-garamond-v32-latin-500italic.woff2') format('woff2'),
       url('fonts/eb-garamond-v32-latin-500italic.ttf') format('truetype');
}

/* eb-garamond-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/eb-garamond-v32-latin-600.woff2') format('woff2'),
       url('fonts/eb-garamond-v32-latin-600.ttf') format('truetype');
}

/* jost-300 - latin */
@font-face {
  font-display: swap;
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/jost-v20-latin-300.woff2') format('woff2'),
       url('fonts/jost-v20-latin-300.ttf') format('truetype');
}

/* jost-300italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Jost';
  font-style: italic;
  font-weight: 300;
  src: url('fonts/jost-v20-latin-300italic.woff2') format('woff2'),
       url('fonts/jost-v20-latin-300italic.ttf') format('truetype');
}

/* jost-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/jost-v20-latin-regular.woff2') format('woff2'),
       url('fonts/jost-v20-latin-regular.ttf') format('truetype');
}

/* jost-italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Jost';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/jost-v20-latin-italic.woff2') format('woff2'),
       url('fonts/jost-v20-latin-italic.ttf') format('truetype');
}

/* jost-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/jost-v20-latin-500.woff2') format('woff2'),
       url('fonts/jost-v20-latin-500.ttf') format('truetype');
}


 *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --primary:  #F8F7F4;
    --marine:    #0e2b46;
    --marine-mid:#1b4265;
    --marine-lt: #2e6496;
    --gold:      #cea84e;
    --white:     #fff;
    --off:       #ede9e2;
    --text:      #3A4A57;
    --muted:     #485e71;
    --serif:     'EB Garamond', Georgia, serif;
    --sans:      'Jost', sans-serif;
  }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

  body {
    background: var(--primary);
    color: var(--text);
    font-family: var(--sans);
    font-size: 1.2rem;
    line-height: 2.5rem;
  
  }

img {
    max-width:100%;
    vertical-align:middle;
}

section {
  position:relative;
}

p + p, p + ul, ul + p { margin-top: 1.6rem; }

/* 01 ############################### Typo ############################### */


h1, h2, h3, q {
  font-family: var(--serif);
  font-weight:normal;
  line-height:normal;
  color:var(--marine);
}

h1 span, h2 span, h3 span {
  font-weight:500;
  font-style: italic;
}


h1 {
  font-size:5rem;
}

h2 {
  font-size:4rem;
}

.number h5 {
  font-size:2.2rem;
  font-family: var(--serif);
    color: var(--marine);
  font-weight: 500;
}

header h2, #geschichte h2 {
  margin-bottom:3rem;
}

p.mini-title, #immobilie p.mini-title {
    font-size:1rem;
  text-transform: uppercase;
    color: var(--gold);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.mini-title::before {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}


.text-center {
  text-align:center;
}



/* Testimonial */

#quote-big blockquote {
  max-width:860px;
  margin:0 auto;
}

q {
  font-size:2.6rem;
  display:block;
  line-height:3.4rem;
  color:var(--marine);
  margin-bottom:1rem;
}

blockquote cite {
  font-style: normal;
  display:block;
  padding-top:1rem;
}


blockquote h5 {
  font-weight:normal;
  text-transform:uppercase;
  line-height:normal;
    margin-top:.5rem;
}

blockquote h5 span {
  display:block;
  text-transform: none;
}

#quote-big img {
  max-width:95px;
  border:5px solid var(--gold);
  border-radius:200rem;
}


/* 02 ############################### Grid System ############################### */

.row {
    max-width: 1560px;
    margin: 0 auto;
    display: grid;
}

.row-narrow {
    max-width: 1190px;
    margin: 0 auto;
    display: grid;
}

.full-width {
    width: 100%;
    max-width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    display: block;
}

.one-c {
    display: grid;
    grid-template-columns: 1fr;
}

.two-c {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
}

.two-uc {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3.5rem;
}

.two-cu {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3.5rem;
}

.three-c {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3.5rem;
}

.three-uc {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3.5rem;
}

.four-c {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3.5rem;
}

.five-c {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3.5rem;
}

.six-c {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 3.5rem;
}

.seven-c {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3.5rem;
}

.eight-c {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 3.5rem;
}

.twelve-c {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3.5rem;
}

.sixteen-c {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 3.5rem;
}

.two-one-c {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4.5rem;
}

.one-two-c {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4.5rem;
}

/* Column Span */

.c-span-4 {
    grid-column: span 4 / span 4;
}

.c-span-5 {
    grid-column: span 5 / span 5;
}

.c-span-6 {
    grid-column: span 6 / span 6;
}

.c-span-7 {
    grid-column: span 7 / span 7;
}

.c-span-8 {
    grid-column: span 8 / span 8;
}

.c-span-9 {
    grid-column: span 9 / span 9;
}

.c-span-10 {
    grid-column: span 10 / span 10;
}

.c-span-11 {
    grid-column: span 11 / span 11;
}

.c-span-12 {
    grid-column: span 12 / span 12;
}

.c-span-13 {
    grid-column: span 13 / span 13;
}

.c-span-14 {
    grid-column: span 14 / span 14;
}

.c-span-15 {
    grid-column: span 15 / span 15;
}

.c-span-16 {
    grid-column: span 16 / span 16;
}

/* Column Start */

.c-start-1 {
    grid-column-start: 1;
}


.c-start-2 {
    grid-column-start: 2;
}

.c-start-3 {
    grid-column-start: 3;
}

.c-start-4 {
    grid-column-start: 4;
}

.c-start-5 {
    grid-column-start: 5;
}

.c-start-6 {
    grid-column-start: 6;
}

.c-start-7 {
    grid-column-start: 7;
}

.c-start-8 {
    grid-column-start: 8;
}

.c-start-9 {
    grid-column-start: 9;
}

.c-start-10 {
    grid-column-start: 10;
}

.c-start-11 {
    grid-column-start: 11;
}

.c-start-12 {
    grid-column-start: 12;
}

.c-start-13 {
    grid-column-start: 13;
}

.c-start-14 {
    grid-column-start: 14;
}

.c-start-15 {
    grid-column-start: 15;
}

.c-start-16 {
    grid-column-start: 16;
}

/* Gap Utilities */

.gap-100 {
    gap: 1rem;
}

.gap-200 {
    gap: 2rem;
}

.gap-350 {
    gap: 3.5rem;
}

.gap-450 {
    gap: 4.5rem;
}

/* ----------------- Spacing ----------------- */

.spacing-200 {
    padding: 2rem 0;
}

.spacing-300 {
    padding: 3rem 0;
}

.spacing-400 {
    padding: 4rem 0;
}

.spacing-500 {
    padding: 5rem 0;
}

.spacing-600 {
    padding: 6rem 0;
}

.spacing-700 {
    padding: 7rem 0;
}

.spacing-900 {
    padding: 9rem 0;
}

.spacing-1200 {
    padding: 12rem 0;
}

.spacing-negative {
    margin-top: -5rem;
}

.no-spacing-bottom {
    padding-bottom: 0;
}

.no-spacing-top {
    padding-top: 0;
}

.v-center-content {
    align-self: center;
}

/* Vertically centers all content within a flex/grid container */
.v-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
}




/* 02 ############################### Das Haus ############################### */

figure {
  position:relative;
}

#image-quote {
  background:var(--marine);
  max-width:320px;
  position:absolute;
  right:-20px;
  bottom:-20px;
  font-family: var(--serif);
  color:var(--white);
  padding:2rem;
  font-size:1.5rem;
  border-left:5px solid var(--gold);
}

/* ##### Geschichte ############################### */


#geschichte::before {
    background:url(images/deiterhaus-skizze-2.jpg) no-repeat;
    background-size:cover;
    content:"";
    display:block;
    position:absolute;
    left:0;
    top:-210px;
    width:700px;
    height:900px;
    z-index:-1;
}


.sticky-steps {
  min-height: 100dvh;
  position: relative;
  overflow: clip;
}

.sticky-steps__container {
  max-width: 74em;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5em;
  padding-right: 1.5em;
}

.sticky-steps__collection {
  min-height: 100dvh;
  display: flex;
  position: relative;
}

.sticky-steps__list {
  grid-column-gap: 30dvh;
  grid-row-gap: 30dvh;
  flex-flow: column;
  flex: 1;
  padding-top: calc(50dvh - 7.5em);
  padding-bottom: calc(50dvh - 7.5em);
  display: flex;
}

.sticky-steps__text {
  grid-column-gap: 2em;
  flex-flow: column;
  width: 50%;
  padding-right: 6em;
  display: flex;
}

.sticky-steps__eyebrow {
  opacity: .5;
  text-transform: uppercase;
  font-size: 1.3125em;
  font-weight: 700;
}

.sticky-steps__h2 {
  letter-spacing: -.04em;
  margin-top: 0;
  margin-bottom: 0;
  font-size: min(5.5em, 15vw);
  font-weight: 500;
  line-height: .9;
}

.sticky-steps__p {
  opacity: .6;
  margin-bottom: 0;
  font-size: min(1.4375em, 5vw);
  line-height: 1.4;
}

.sticky-steps__media {
  width: 50%;
  height: 100%;
  padding-left: 3em;
  position: absolute;
  top: 0;
  right: 0;
}

.sticky-steps__sticky {
  align-items: center;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  position: sticky;
  top: 0;
}

.sticky-steps__visual {
  aspect-ratio: 3 / 4;
  width: 100%;
  position: relative;
}

.sticky-steps__cover-image {
  object-fit: cover;
  border-radius: inherit;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

@media screen and (min-width: 992px) {
  [data-sticky-steps-item-status] .sticky-steps__visual {
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    opacity: 0;
    visibility: hidden;
  }

  [data-sticky-steps-item-status="before"] .sticky-steps__visual,
  [data-sticky-steps-item-status="active"] .sticky-steps__visual {
    opacity: 1;
    visibility: visible;
  }

  [data-sticky-steps-item-status] .sticky-steps__text {
    transition: opacity 0.5s ease-in-out;
    opacity: 0.25;
  }

  [data-sticky-steps-item-status="active"] .sticky-steps__text {
    opacity: 1;
  }
}

@media screen and (max-width: 991px) {
  .sticky-steps__list {
    grid-column-gap: 7.5em;
    grid-row-gap: 7.5em;
    padding-top: 10em;
    padding-bottom: 10em;
  }

  .sticky-steps__text {
    width: 100%;
    padding-bottom: 5em;
    padding-right: 0;
  }

  .sticky-steps__sticky {
    min-height: auto;
    position: relative;
    top: auto;
  }

  .sticky-steps__media {
    width: 100%;
    height: auto;
    padding-left: 0;
    position: relative;
    top: auto;
    right: auto;
  }
}

@media screen and (max-width: 767px) {
  .sticky-steps__text {
    grid-column-gap: 1.5em;
    grid-row-gap: 1.5em;
  }
}



/* 04 ############################### Immobilie ############################### */

#immobilie {
  background: url(images/bg-sun.jpg) no-repeat center -600px #00264a;
  background-size:cover;
  color: var(--white);
  padding-top:20rem;
  padding-bottom:8rem;
}


#immobilie h2 {
  color: var(--white);
  margin-bottom:2rem;
}

#immobilie h2 span {
  color: var(--white);
}

#immobilie p {
  color: var(--white);
  margin-bottom: 2rem;
}

#immobilie .btn-primary {
  padding: 0.9rem 2.2rem;
  background: var(--gold);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease;
  max-width:370px;
  text-align:center;
  margin-top:1.8rem;
}

#immobilie .btn-primary:hover {
  background: var(--white);
  color:var(--gold);
}

/* Stats grid — 3 columns × 2 rows */
.immobilie-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 3rem;
  column-gap: 2rem;
  padding-top: 13.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248,247,244,0.45);
}

.stat-value {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
}


/* 09 ############################### Glockenspiel ############################### */

#glockenspiel {
  background:var(--primary);
}

#glockenspiel::before {
    background:url(images/deiterhaus-skizze-3.jpg) no-repeat;
    background-size:cover;
    content:"";
    display:block;
    position:absolute;
    left:0;
    top:-110px;
    width:600px;
    height:700px;
    z-index:-1;
}


/* Each column is a flex column so text sits on top, images push to bottom */
.glockenspiel-col {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.glockenspiel-text {
  display: flex;
  flex-direction: column;
  padding:2.5rem;
}

/* Reuse immobilie-header mini-title gold rule style */
#glockenspiel .immobilie-header .mini-title {
  color: var(--gold);
}

/* Bullet list with gold square markers */
.glockenspiel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0;
}

.glockenspiel-list li {
  line-height: 1.7rem;
  color: var(--text);
  padding-left: 1.4rem;
  position: relative;
}

.glockenspiel-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  background: var(--gold);
  flex-shrink: 0;
}

/* Left: single large image, fills column width */
.glockenspiel-img-main {
  margin: 0;
}

.glockenspiel-img-main img {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Right: two stacked images */
.glockenspiel-img-stack {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Top right image: full column width, landscape */
.glockenspiel-img-wide {
  margin: 0;
}

.glockenspiel-img-wide img {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Bottom right image: narrower — sits left, ~60% width */
.glockenspiel-img-narrow {
  margin: 2rem 0 0 0;
  width: 62%;
}

.glockenspiel-img-narrow img {
  width: 100%;

  object-fit: cover;
  display: block;
}

#main-footer {
  background: var(--marine);
}

/* Footer CTA box */
#footer-cta {
  background:var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1210px;
  margin:10rem auto 0 auto;
  background: var(--white);
  position:relative;
  top:-100px;
}

#footer-cta img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta-text {
  padding: 4rem;
  gap: 1.2rem;
}

.cta-text h3 {
  font-size: 2.6rem;
  line-height: 1.2;
  color: var(--marine);
}

.cta-text p {
  color: var(--muted);
}

.cta-text a.js-open-lightbox {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: var(--gold);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease;
  align-self: center;
}

.cta-text a.js-open-lightbox:hover {
  background: var(--off);
  color:var(--gold);
}

.tel span {
  display: block;
}


.footer-cta a h5 {
  text-decoration:none!important;
  color:var(--marine-mid);
}

:-webkit-any-link {

    text-decoration: none;
}

.tel .number span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Footer bottom bar */
#footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1210px;
  width: 100%;
  margin: -50px auto 0;
  padding: 1.8rem 0;
  border-top: 1px solid rgba(248, 247, 244, 0.1);

  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;

  --footer-color: rgba(248, 247, 244, 0.55);
}

#footer-links p,
#back-to-top,
#footer-links ul a {
  color: var(--footer-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

#back-to-top:hover,
#footer-links ul a:hover {
  color: var(--white);
}

#copyright {
  display: flex;
  gap:0.5rem;
}

#footer-links ul {
  display: flex;
  list-style: none;
  gap:1.5rem;
}


/* 09 ############################### Glockenspiel ############################### */


/* 05 ############################### Header ############################### */

#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3.8rem 3rem 1.8rem 3rem; 
  background: transparent;
  transition: all 0.4s ease;
    font-size: 0.95rem;
    font-family: var(--sans);
    text-transform: uppercase;
}

#main-header a {
  text-decoration:none;
}

#main-header.scrolled {
  background: var(--primary);
  box-shadow: 0 1px 0 rgba(14,43,70,0.08);
  padding-top:1.8rem;
}

/* Nav links */
#main-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

#main-nav .nav-links a {
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  transition: opacity 0.25s ease;
}

#main-header.scrolled #main-nav .nav-links a {
  color: var(--marine);
}

#main-nav .nav-links a:hover {
  opacity: 0.6;
}

/* Logo */
#logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.25rem;
  font-family: var(--serif);
}

.nav-logo {
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--white);
  transition: color 0.4s ease;
  text-transform:uppercase
}

#main-header.scrolled .nav-logo {
  color: var(--marine);
}

/* SVG logo shown only when transparent (on top of banner) */
#logo-svg {
  display: block;
  width: 64px;
  height: auto;
  transition: opacity 0.4s ease;
  margin-left:-12px;
}

#main-header.scrolled #logo-svg {
  display: none;
}

/* Header contact */
#header-contact ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

#header-contact ul a {
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--white);
  transition: opacity 0.25s ease;
}

#main-header.scrolled #header-contact ul a {
  color: var(--marine);
}

#header-contact ul a:hover {
  opacity: 0.6;
}


/* 06 ############################### Banner ############################### */

#banner {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ken Burns slides */
.banner-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.banner-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: kenBurnsCycle 24s infinite;
}

.banner-slide:nth-child(1) { animation-delay: 0s; }
.banner-slide:nth-child(2) { animation-delay: 6s; }
.banner-slide:nth-child(3) { animation-delay: 12s; }
.banner-slide:nth-child(4) { animation-delay: 18s; }

.banner-slide:nth-child(1) { background-image: url('images/banner/banner-deitterhaus-essen-1.jpg'); }
.banner-slide:nth-child(2) { background-image: url('images/banner/banner-deitterhaus-essen-2.jpg'); }
.banner-slide:nth-child(3) { background-image: url('images/banner/banner-deitterhaus-essen-3.jpg'); }
.banner-slide:nth-child(4) { background-image: url('images/banner/banner-deitterhaus-essen-4.jpg'); }

@keyframes kenBurnsCycle {
  0%   { opacity: 0; transform: scale(1.08); }
  5%   { opacity: 1; }
  25%  { opacity: 1; transform: scale(1.0); }
  30%  { opacity: 0; transform: scale(1.0); }
  100% { opacity: 0; }
}

/* Dark overlay over slides */
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,43,70,0.55) 0%,
    rgba(14,43,70,0.35) 50%,
    rgba(14,43,70,0.65) 100%
  );
  z-index: 1;
}

/* Banner content */
.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1330px;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.banner-content .mini-title {
  color: var(--gold);
  letter-spacing: 0.2em;
}

.banner-content .mini-title::before, #denkmal .mini-title::before {
  display:none;
}

#denkmal p.mini-title {
  display:block;
}

.banner-content h1 {
  color: var(--white);
  font-size: 4.6rem;
  line-height: 1.3;
}

.banner-subtitle {
  color: var(--white);
  font-size: 1.4rem;
  line-height: 2rem;
  max-width: 620px;
  margin:1rem 0 2rem 0;
}

/* Double CTA */
.double-cta {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-top: 1rem;
}

.double-cta a.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: var(--gold);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 500;
  font-size:0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
  cursor: pointer;
}

.double-cta a.btn-primary:hover {
  background: var(--white);
  color:var(--gold);
}

.double-cta a.btn-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-family: var(--serif);
  font-size:1.6rem;
  font-weight: 300;
  text-decoration: none;
    letter-spacing: 0.08em;
}


.btn-tel-icon {
  width: 20px;
  height: 20px;
  fill: var(--gold);
}


/* 07 ############################### Lightbox / Contact Modal ############################### */

#contact-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#contact-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14,43,70,0.75);
  backdrop-filter: blur(4px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  background: var(--primary);
  max-width: 560px;
  width: 90%;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(24px);
  transition: transform 0.35s ease;
}

#contact-lightbox.open .lightbox-panel {
  transform: translateY(0);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1.4rem;
  color: var(--marine);
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-panel .mini-title {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.lightbox-panel h3 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.lightbox-contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-top: 1px solid var(--off);
  padding-top: 1.2rem;
}

.lightbox-contact-item span {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.lightbox-contact-item a,
.lightbox-contact-item p {
  line-height: 1.8rem;
  color: var(--marine);
  text-decoration: none;
}

.lightbox-contact-item a:hover {
  text-decoration: underline;
}

/* 05 ############################### Denkmal ############################### */

#denkmal::before {
content: "";
    display: block;
    position: absolute;
    right: 0px;
    top: 20px;
    width: 540px;
    height: 700px;
    z-index: -1;
    background: url(images/deiterhaus-skizze-4.jpg) no-repeat;
    background-size: cover;
}

#denkmal .row {
  max-width:960px;
  margin:0 auto;
}


/* Intro */


#intro {
  font-size: 2.1rem;
    display: block;
    line-height: 3.4rem;
    color: var(--marine);
    font-family: var(--serif);
    position:relative;
}


#intro::before {
    background:url(images/deiterhaus-skizze-1.jpg) no-repeat;
    background-size:cover;
    content:"";
    display:block;
    position:absolute;
    right:0;
    width:700px;
    height:1200px;
    z-index:-1;
}

#intro .row {
      max-width: 830px;
    margin: 0 auto;
}

#intro img {
  max-width:100px;
  margin:3rem auto;
  position:relative;
  left:-15px;
}

/* ============================================================
   ##### RESPONSIVE #####
   All responsive rules below this line.
   Breakpoints:
     - 1024px: tablet / small laptop adjustments
     -  768px: mobile (hamburger menu kicks in)
   ============================================================ */


/* Hide hamburger + mobile menu + mobile logo on desktop by default */
#mobile-menu-toggle,
#mobile-menu,
#mobile-logo {
  display: none;
}


/* ============================================================
   10 ##### Tablet / Small Laptop ( 769px – 1100px ) #####
   Bounded range so these rules don't stack on top of the mobile
   rules below (which fully reorganize the layout at <=768).
   ============================================================ */

   @media screen and (min-width: 1201px) and (max-width: 1400px) {

    #main-nav .nav-links {

    gap: 1.5rem;

}

   }

@media screen and (min-width: 769px) and (max-width: 1200px) {

  /* --- Typography scale-down --- */
  body {
    font-size: 1.1rem;
    line-height: 2.1rem;
  }

  h1 { font-size: 3.6rem; }
  h2 { font-size: 2.6rem; }

  q { font-size: 2rem; line-height: 2.8rem; }


  .header-style-one.c-start-3.c-span-6 {
    grid-column: span 8 / span 8;
  }



  /* --- Header padding --- */
  #main-header {
    padding: 2.5rem 2rem 1.5rem 2rem;
  }

  #main-nav .nav-links {
    gap: 1.5rem;
  }

  #header-contact ul {
    gap: 1.2rem;
  }

  /* --- Banner --- */
  .banner-content h1 {
    font-size: 3.4rem;
  }

  .banner-subtitle {
    font-size: 1.2rem;
    line-height: 1.8rem;
  }

  .double-cta a.btn-tel {
    font-size: 1.3rem;
  }

  /* --- Sixteen-col grids: tighten gutters --- */
  .sixteen-c { gap: 2rem; }

  /* --- Spacing utilities scale down --- */
  .spacing-1200 { padding: 7rem 0; }
  .spacing-900  { padding: 6rem 0; }
  .spacing-700  { padding: 5rem 0; }

  /* --- Row side-padding so content doesn't touch edges --- */
  .row,
  .row-narrow {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  /* --- Haus --- */

  figure.c-start-2 {
    grid-column-start: 1;
  }

  #image-quote {
    bottom:120px;
  }

  /* --- Immobilie stats: 2 columns instead of 3 --- */
  .immobilie-stats {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 5rem;
  }

  .stat-value { font-size: 2.2rem; }

  #immobilie .btn-primary {
    line-height:normal;
  }

  /* --- Image quote box: smaller --- */
  #image-quote {
    max-width: 260px;
    font-size: 1.2rem;
    padding: 1.5rem;
  }

  /* --- Footer CTA --- */
  .cta-text { padding: 3rem; }
  .cta-text h3 { font-size: 2.2rem; }

  #footer-cta {
    padding:0;
  }

#footer-links, #copyright, #footer-links ul {
  display:block;
  text-align:center;
}

}


/* ============================================================
   11 ##### Navigation switch ( <= 1100px ) #####
   At this width the desktop horizontal nav starts feeling cramped,
   so we hide the desktop header and show the hamburger + slide-out
   menu instead. Layout (grids, sections) stays desktop-style until
   the 768 mobile breakpoint below.
   ============================================================ */

@media screen and (max-width: 1100px) {

  /* --- Hide desktop header --- */
  #main-header {
    display: none;
  }


  /* --- Mobile logo: sits in the banner top-left, scrolls away with content
         (NOT fixed — only the hamburger is pinned) --- */
  #mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 10;

    text-decoration: none;
  }

  #mobile-logo img {
    width: 38px;
    height: auto;
  }

  .mobile-logo-wordmark {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.22em;
    color: var(--white);
    text-transform: uppercase;
  }


  /* --- Hamburger button: round, fixed, top-right, scrolls with user --- */
  #mobile-menu-toggle {
    display: flex;
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 200;

    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 0;

    background: var(--marine);
    box-shadow: 0 4px 14px rgba(14, 43, 70, 0.25);

    align-items: center;
    justify-content: center;

    transition: background 0.25s ease, transform 0.25s ease;
  }

  #mobile-menu-toggle:hover {
    transform: scale(1.05);
  }

  /* The 3 lines */
  .hamburger-icon {
    position: relative;
    display: block;
    width: 22px;
    height: 16px;
  }

  .hamburger-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
  }

  .hamburger-icon span:nth-child(1) { top: 0; }
  .hamburger-icon span:nth-child(2) { top: 7px; }
  .hamburger-icon span:nth-child(3) { top: 14px; }

  /* When open: morph into an X */
  #mobile-menu-toggle.is-active .hamburger-icon span:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
  }
  #mobile-menu-toggle.is-active .hamburger-icon span:nth-child(2) {
    opacity: 0;
  }
  #mobile-menu-toggle.is-active .hamburger-icon span:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
  }


  /* --- Slide-out menu --- */
  #mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 150;
    pointer-events: none;
  }

  .mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 43, 70, 0.55);
    opacity: 0;
    transition: opacity 0.35s ease;
  }

  .mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(85%, 360px);
    background: var(--primary);
    padding: 2rem 2.2rem 2.5rem 2.2rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;

    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.5, 0, 0.2, 1);
    box-shadow: -8px 0 30px rgba(14, 43, 70, 0.15);
  }

  /* Open state */
  #mobile-menu.open {
    pointer-events: all;
  }

  #mobile-menu.open .mobile-menu-backdrop {
    opacity: 1;
  }

  #mobile-menu.open .mobile-menu-panel {
    transform: translateX(0);
  }

  /* Logo inside menu — SVG above wordmark, centered */
  .mobile-menu-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid rgba(14, 43, 70, 0.1);
    width: 100%;
  }

  .mobile-menu-logo img {
    width: 56px;
    height: auto;
    margin-left:-12px;
  }

  .mobile-menu-wordmark {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.22em;
    color: var(--marine);
    text-transform: uppercase;
  }

  /* Nav links inside slide-out — centered */
  .mobile-menu-nav {
    width: 100%;
  }

  .mobile-menu-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0;
    margin: 0;
  }

  .mobile-menu-nav a {
    display: block;
    padding: 0.7rem 0;
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--marine);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .mobile-menu-nav a:hover,
  .mobile-menu-nav a:active {
    color: var(--gold);
  }

  /* Contact block at bottom of slide-out — centered */
  .mobile-menu-contact {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(14, 43, 70, 0.1);
    width: 100%;
  }

  .mobile-menu-contact-intro {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
    line-height:normal;
  }

  .mobile-menu-tel {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--marine);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
  }

  .mobile-menu-tel:hover {
    color: var(--gold);
  }

  .mobile-menu-email {
    font-family: var(--sans);
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
  }

  .mobile-menu-email:hover {
    color: var(--gold);
  }
}


/* ============================================================
   12 ##### Mobile ( <= 768px ) #####
   ============================================================ */

@media screen and (max-width: 768px) {

  /* --- Typography --- */
  body {
    font-size: 1rem;
    line-height: 1.8rem;
  }

  h1 { font-size: 2.4rem; line-height: 1.2; }
  h2 { font-size: 2.1rem; line-height: 1.2; }

  header h2,
  #geschichte h2 { margin-bottom: 1.8rem; }

  q { font-size: 1.5rem; line-height: 2.2rem; }

  p + p { margin-top: 1.2rem; }


  /* --- Banner --- */
  #banner {
    height: auto;
    min-height: 100vh;
    padding: 7rem 0 5rem 0;
  }

  .banner-content {
    padding: 0 1.5rem;
    gap: 1rem;
  }

  .banner-content h1 {
    font-size: 2.2rem;
    line-height: 1.25;
  }

  .banner-subtitle {
    font-size: 1.05rem;
    line-height: 1.6rem;
    margin: 0.5rem 0 1.5rem 0;
  }

  .banner-content .mini-title {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
  }

  /* Stack the two CTAs */
  .double-cta {
    flex-direction: column;
    gap: 1.4rem;
    width: 100%;
  }

  .double-cta a.btn-primary {
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
  }

  .double-cta a.btn-tel {
    font-size: 1.2rem;
  }


  /* --- Mini-title: shrink the gold dash --- */
  .mini-title::before {
    width: 36px;
  }


  /* --- Section: Intro --- */
  #intro {
    font-size: 1.4rem;
    line-height: 2.2rem;
  }

  #intro img {
    max-width: 70px;
    margin: 1.5rem auto;
  }

  /* Hide the big decorative skizze backgrounds on mobile —
     they cause horizontal overflow and clutter the small viewport */
  #intro::before,
  #geschichte::before,
  #glockenspiel::before,
  #denkmal::before {
    display: none;
  }


  /* --- Section: Haus --- */
  /* Collapse 16-col grid to a single column */
  #haus .row.sixteen-c,
  #immobilie .row.sixteen-c,
  #glockenspiel .row.sixteen-c {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Reset all column-spans + starts on mobile */
  #haus .c-start-3,
  #haus .c-start-2,
  #haus .c-start-10,
  #immobilie .c-start-2,
  #immobilie .c-start-9,
  #glockenspiel .c-start-2,
  #glockenspiel .c-start-9 {
    grid-column-start: 1;
  }

  #haus .c-span-6,
  #haus .c-span-7,
  #immobilie .c-span-6,
  #immobilie .c-span-7,
  #glockenspiel .c-span-7 {
    grid-column: span 1 / span 1;
  }

  #haus figure {
    margin-top: 0.5rem;
  }

  /* Image-quote box: re-position so it doesn't overflow */
  #image-quote {
    position: static;
    max-width: 100%;
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 1.2rem 1.4rem;
    border-left-width: 4px;
  }


  /* --- Section: Geschichte / sticky-steps --- */
  /* The existing 991px breakpoint already handles most of this, but tighten further */
  .sticky-steps__container {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .sticky-steps__list {
    grid-row-gap: 4em;
    padding-top: 4em;
    padding-bottom: 4em;
  }

  .sticky-steps__text {
    padding-bottom: 2.5em;
  }


  /* --- Section: Immobilie --- */
  #immobilie {
    background-size:contain;
    background-position: center top;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .immobilie-stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
    column-gap: 1.5rem;
    padding-top: 2rem;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  #immobilie .btn-primary {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }


  /* --- Section: Quote-big --- */
  #quote-big img {
    max-width: 70px;
    border-width: 4px;
  }


  /* --- Section: Glockenspiel --- */
  .glockenspiel-col {
    gap: 2rem;
  }

  .glockenspiel-text {
    padding: 1.5rem 0;
  }

  .glockenspiel-img-narrow {
    width: 100%;
    margin-top: 0;
  }


  /* --- Footer CTA: stack image above text --- */
  #footer-cta {
    grid-template-columns: 1fr;
    margin: 5rem 1.2rem 0 1.2rem;
    top: -60px;
    padding-top:2rem;
  }

  #footer-cta img {
    height: 260px;
  }

  .cta-text {
    padding: 2.5rem 1.8rem;
  }

  .cta-text h3 {
    font-size: 1.8rem;
  }

  .cta-text a.js-open-lightbox {
    line-height:normal;
  }

  .number h5 {
    font-size: 1.8rem;
  }


  /* --- Footer bottom bar: stack --- */
  #footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    margin-top: -30px;
  }

  #copyright {
    flex-direction: column;
    gap: 0.2rem;
  }

  #copyright p {
    line-height: 1.4;
  }


  /* --- Spacing utilities: smaller on mobile --- */
  .spacing-1200 { padding: 5rem 0; }
  .spacing-900  { padding: 4rem 0; }
  .spacing-700  { padding: 3.5rem 0; }
  .spacing-600  { padding: 3rem 0; }


  /* --- Lightbox: full-bleed on mobile --- */
  .lightbox-panel {
    padding: 2.5rem 1.8rem;
    width: 92%;
    gap: 0.5rem;
  }

  .lightbox-panel h3 {
    font-size: 1.6rem;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }


  /* --- Row padding on mobile: keep content off the edges --- */
  .row,
  .row-narrow {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}


/* ============================================================
   13 ##### Tiny phones ( <= 380px ) — final polish #####
   ============================================================ */

@media screen and (max-width: 380px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }

  .banner-content h1 { font-size: 1.9rem; }

  #mobile-menu-toggle {
    width: 50px;
    height: 50px;
    top: 1rem;
    right: 1rem;
  }

  #mobile-logo {
    top: 1rem;
    left: 1rem;
  }

  #mobile-logo img {
    width: 32px;
  }

  .mobile-logo-wordmark {
    font-size: 1.2rem;
    letter-spacing: 0.18em;
  }

  .immobilie-stats {
    grid-template-columns: 1fr;
  }
}
