/*
Theme Name:  Silence in Motion Child
Template:    generatepress
Description: Child-Theme für Jette Linsener – Silence in Motion
Version:     1.0
Author:      IDPARK | André Quednau
Author URI:  https://www.idpark.de
*/

/* ── TOKENS ───────────────────────────────────────────────── */
:root {
  --sand:      #F4EFE6;
  --linen:     #EAE3D8;
  --stone:     #C5BAA8;
  --rust:      #e95d11;
  --rust-dim:  #b84510;
  --steel:     #3B6478;
  --steel-dim: #2C4D5E;
  --water:     #7A9E8E;
  --ink:       #2A2018;
  --ink-soft:  #4A3E34;
  --white:     #FDFAF6;
  --serif:     "Cormorant Garant", Georgia, serif;
  --sans:      "Jost", system-ui, sans-serif;
  --ease:      cubic-bezier(.4,0,.2,1);
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--linen); color: var(--ink); font-family: var(--sans);
       font-weight: 300; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── LANGUAGE SWITCH ──────────────────────────────────────── */
/* Default: DE visible, EN hidden — both block and inline elements */
[data-lang="en"]      { display: none; }
span[data-lang="en"]  { display: none; }

/* EN mode: flip visibility */
body.en [data-lang="de"]     { display: none; }
body.en span[data-lang="de"] { display: none; }
body.en [data-lang="en"]     { display: block; }
body.en span[data-lang="en"] { display: inline; }

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
nav.scrolled {
  background: rgba(244,239,230,.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(42,32,24,.1);
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  transition: color .4s var(--ease);
}
nav.scrolled .nav-brand { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 2rem; }

.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  transition: color .3s var(--ease), opacity .3s;
}
.nav-links a:hover { color: var(--white); opacity: 1; }
nav.scrolled .nav-links a { color: var(--ink-soft); }
nav.scrolled .nav-links a:hover { color: var(--rust); }

.lang-toggle {
  display: flex; gap: .3rem; align-items: center;
  font-size: .72rem; letter-spacing: .1em; font-family: var(--sans);
}
.lang-btn {
  background: none; border: 1px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.75); padding: .2rem .55rem;
  border-radius: 2px; cursor: pointer; transition: all .25s;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  font-family: var(--sans); font-weight: 400;
}
.lang-btn.active {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.8);
  color: var(--white);
}
.lang-btn:hover { background: rgba(255,255,255,.15); color: var(--white); }
nav.scrolled .lang-btn { border-color: var(--stone); color: var(--ink-soft); }
nav.scrolled .lang-btn.active { background: var(--rust); border-color: var(--rust); color: var(--white); }
nav.scrolled .lang-btn:hover { border-color: var(--rust); color: var(--rust); }

/* ── HERO ─────────────────────────────────────────────────── */
#hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; background: transparent;
}
.hero-bg {
  position: fixed; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  transform: scale(1.06);
  transition: transform 12s var(--ease);
}
#hero.loaded .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30,20,12,.18) 0%,
    rgba(30,20,12,.35) 50%,
    rgba(30,20,12,.55) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  opacity: 0; transform: translateY(24px);
  transition: opacity 1s 0.3s var(--ease), transform 1s 0.3s var(--ease);
}
#hero.loaded .hero-content { opacity: 1; transform: none; }

.hero-eyebrow {
  font-family: var(--sans); font-size: .72rem;
  letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.7); margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--serif); font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300; letter-spacing: .06em;
  color: var(--white); line-height: 1.1;
  text-shadow: 0 2px 30px rgba(0,0,0,.3);
}
.hero-title em { font-style: italic; font-weight: 300; }
.hero-subtitle {
  margin-top: 1.4rem;
  font-family: var(--sans); font-size: .85rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.hero-divider {
  width: 40px; height: 1px;
  background: rgba(255,255,255,.5);
  margin: 1.4rem auto;
}
.hero-tagline {
  font-family: var(--serif); font-style: italic;
  font-size: 1.1rem; color: rgba(255,255,255,.85);
  font-weight: 300;
}

.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: .5rem; color: rgba(255,255,255,.5);
  font-size: .65rem; letter-spacing: .2em; text-transform: uppercase;
  z-index: 2;
}
.scroll-arrow {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:.4;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(.7)} }

/* ── SECTIONS ─────────────────────────────────────────────── */
section { padding: 6rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--rust); margin-bottom: .8rem; font-weight: 500;
}
.section-title {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; line-height: 1.2; color: var(--ink);
  margin-bottom: 2.5rem;
}
.section-title em { font-style: italic; color: var(--rust); }

/* ── ABOUT ────────────────────────────────────────────────── */
#about { background: rgba(253,250,246,.88); }
.about-grid { display: block; }
.about-img-wrap {
  float: left;
  width: 310px;
  margin: 0 3rem 2rem 0;
  position: relative;
  shape-outside: margin-box;
}
.about-img-wrap::before {
  content: "";
  position: absolute; top: -1rem; left: -1rem;
  width: 90%; height: 85%;
  border: 1px solid var(--stone);
  z-index: 0;
}
.about-img {
  position: relative; z-index: 1;
  width: 100%; height: auto;
  object-fit: cover; object-position: center top;
  display: block;
}
.about-clearfix::after { content: ""; display: table; clear: both; }
.about-text p {
  font-size: 1.05rem; line-height: 1.85; color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.about-text p:last-child { margin-bottom: 0; }
.about-quote {
  border-left: 2px solid var(--rust);
  padding: .8rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--serif); font-style: italic;
  font-size: 1.3rem; color: var(--ink); line-height: 1.5;
}

/* ── ANGEBOTE ─────────────────────────────────────────────── */
#angebote { background: rgba(244,239,230,.87); }
.angebote-intro {
  max-width: 680px; font-size: 1.05rem;
  color: var(--ink-soft); margin-bottom: 3.5rem; line-height: 1.8;
}
.angebote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.angebot-card {
  background: var(--white);
  padding: 2rem 1.8rem;
  border-top: 2px solid var(--rust);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.angebot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(42,32,24,.1);
}
.angebot-icon {
  width: 32px; height: 32px; margin-bottom: 1rem;
  color: var(--rust); opacity: .7;
}
.angebot-title {
  font-family: var(--serif); font-size: 1.25rem;
  font-weight: 500; color: var(--ink); margin-bottom: .6rem;
}
.angebot-desc {
  font-size: .9rem; color: var(--ink-soft); line-height: 1.65;
}
.angebot-hinweis {
  margin-top: 3rem; padding: 1.5rem 2rem;
  border: 1px solid var(--stone); font-size: .88rem;
  color: var(--ink-soft); font-style: italic; line-height: 1.65;
  max-width: 680px;
}

/* ── IMAGE STRIP ──────────────────────────────────────────── */
.img-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 260px; overflow: hidden;
}
.img-strip-item {
  overflow: hidden; position: relative;
}
.img-strip-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
  filter: saturate(.85);
}
.img-strip-item:hover img {
  transform: scale(1.05);
  filter: saturate(1);
}

/* ── AKTUELLES ────────────────────────────────────────────── */
#aktuelles { background: rgba(253,250,246,.88); }
.events-list { list-style: none; max-width: 720px; }
.event-item {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 2rem; padding: 1.8rem 0;
  border-bottom: 1px solid var(--linen);
  transition: background .2s;
}
.event-item:first-child { border-top: 1px solid var(--linen); }
.event-date {
  font-family: var(--serif); font-size: 1rem;
  font-weight: 300; color: var(--rust); line-height: 1.4;
  font-style: italic;
}
.event-info h4 {
  font-family: var(--serif); font-size: 1.2rem;
  font-weight: 500; margin-bottom: .3rem; color: var(--ink);
}
.event-info p {
  font-size: .88rem; color: var(--ink-soft); line-height: 1.6;
}
.event-tag {
  display: inline-block; margin-top: .5rem;
  font-size: .65rem; letter-spacing: .15em; text-transform: uppercase;
  background: var(--sand); color: var(--rust);
  padding: .15rem .6rem; border-radius: 2px;
}

/* ── KONTAKT ──────────────────────────────────────────────── */
#kontakt {
  background: var(--ink);
  color: var(--sand);
  text-align: center;
  position: relative; overflow: hidden;
}
#kontakt::before {
  content: "";
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  opacity: .12;
}
.kontakt-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
#kontakt .section-label { color: var(--stone); }
#kontakt .section-title { color: var(--sand); }
.kontakt-text {
  font-size: 1rem; color: rgba(244,239,230,.7);
  margin-bottom: 2.5rem; line-height: 1.8;
}
.kontakt-email {
  display: inline-block;
  font-family: var(--serif); font-size: 1.4rem;
  font-weight: 300; font-style: italic;
  color: var(--sand); border-bottom: 1px solid rgba(244,239,230,.3);
  padding-bottom: .2rem;
  transition: color .25s, border-color .25s;
}
.kontakt-email:hover { color: var(--rust); border-color: var(--rust); }
.kontakt-note {
  margin-top: 1.5rem; font-size: .82rem;
  color: rgba(244,239,230,.4); letter-spacing: .05em;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: #1A1410;
  color: rgba(244,239,230,.35);
  padding: 2rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .75rem; letter-spacing: .08em;
}
footer a { transition: color .25s; }
footer a:hover { color: var(--stone); }
.footer-links { display: flex; gap: 1.5rem; }

/* ── FADE-IN ──────────────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.fade-up.visible { opacity: 1; transform: none; }
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .about-img-wrap { float: none; width: 100%; margin: 0 0 2rem 0; }
  .about-img-wrap::before { display: none; }
  .img-strip { grid-template-columns: repeat(2, 1fr); height: 320px; }
  section { padding: 4rem 1.5rem; }
}
@media (max-width: 600px) {
  .img-strip { grid-template-columns: 1fr 1fr; height: 240px; }
  .event-item { grid-template-columns: 1fr; gap: .5rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ── LOGO ─────────────────────────────────────────────────── */
.nav-brand { line-height: 0; display: block; }
.logo-light { display: block; height: 40px; width: auto; }
.logo-dark  { display: none;  height: 40px; width: auto; }
nav.scrolled .logo-light { display: none; }
nav.scrolled .logo-dark  { display: block; }

.hero-spiral {
  display: block;
  height: 175px; width: auto;
  margin: 0 auto 1.8rem;
  opacity: .95;
  filter: drop-shadow(0 0 18px rgba(255,255,255,.55)) drop-shadow(0 0 44px rgba(255,255,255,.18));
}

/* ── FIX 1: Angebotskarten-Titel – Klassen-Alias ─────────────── */
/* Prototype CSS nutzt .angebot-title, PHP nutzt .angebot-titel   */
.angebot-titel,
.angebot-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: .6rem;
}

/* ── FIX 3: Subpage-Design (Impressum / Datenschutz) ─────────── */
.subpage-hero {
  padding: 8rem 2rem 4rem;
  background: var(--white);
  border-bottom: 1px solid var(--linen);
  text-align: center;
}
.subpage-hero .section-label { margin-bottom: .6rem; }
.subpage-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300; color: var(--ink); line-height: 1.15;
  margin: 0;
}

.subpage-content {
  max-width: 780px; margin: 0 auto;
  padding: 4rem 2rem 6rem;
  color: var(--ink-soft); font-size: 1rem; line-height: 1.8;
}
.subpage-content h2 {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 500;
  color: var(--ink); margin: 2.5rem 0 .6rem;
  border-bottom: 1px solid var(--linen); padding-bottom: .4rem;
}
.subpage-content h3 {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500;
  color: var(--ink); margin: 1.8rem 0 .4rem;
}
.subpage-content h4 {
  font-size: .85rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--rust);
  margin: 1.5rem 0 .3rem;
}
.subpage-content p { margin-bottom: 1rem; }
.subpage-content a {
  color: var(--rust);
  border-bottom: 1px solid rgba(233,93,17,.25);
  transition: border-color .2s;
}
.subpage-content a:hover { border-color: var(--rust); }
.subpage-content .back-link {
  display: inline-block; margin-bottom: 3rem;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--stone); border: none;
}
.subpage-content .back-link:hover { color: var(--rust); border: none; }
.subpage-content address {
  font-style: normal; margin-bottom: 1rem; line-height: 1.9;
}
.subpage-content .legal-notice {
  background: var(--sand); padding: 1.2rem 1.5rem;
  border-left: 2px solid var(--rust);
  margin: 1.5rem 0; font-size: .88rem;
  text-transform: uppercase; letter-spacing: .04em; line-height: 1.6;
}
/* Screen-reader-only H1 für SEO */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
