/* ============================================================
   60plus.online – Styles
   - Desktop ≥ 768px: 1 großes Türen-Bild, HTML-Schilder drüber
   - Mobile  < 768px: horizontal scrollende Story-Karten mit Snap
   ============================================================ */

:root {
  --bg-warm:        #f5efe6;
  --ink:            #1f2933;
  --muted:          #5a6470;
  --accent:         #1f3a8a;
  --green:          #3e7b3e;
  --blue:           #2f6fb5;
  --teal:           #2c8a8a;
  --gold:           #b88a3b;
  --red:            #b53b3b;
  --brown:          #6b4a2b;
  --sign-bg:        #2b1d12;        /* dunkles Holz */
  --sign-text:      #f3e8d3;        /* warm-cremig */
  --radius:         12px;
  --shadow-soft:    0 4px 14px rgba(0,0,0,.10);
  --shadow-strong:  0 8px 24px rgba(0,0,0,.18);
}

html { font-size: 17px; }
@media (min-width: 992px) { html { font-size: 18px; } }

body {
  font-family: 'Lato', system-ui, sans-serif;
  background: var(--bg-warm);
  color: var(--ink);
  line-height: 1.55;
}

/* ---------- Kopfbereich --------------------------------- */
.site-header { background: #fff; }

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--accent);
}
.brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.4rem;
}
.btn-lang { min-width: 64px; font-weight: 700; }
.btn-login, .btn-user { font-weight: 700; }
.btn-user__avatar { color: var(--green); margin-right: .35rem; }
.btn-user__name   { font-weight: 700; }

/* ---------- Hero-Text ---------------------------------- */
.hero-slogan {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw + .5rem, 2rem);
  margin: 0 0 .5rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 1vw + .55rem, 1.2rem);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto .25rem;
}
.hero-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1rem, 1vw + .65rem, 1.3rem);
  margin: 0;
}

/* ============================================================
   TÜREN-GALERIE — alle vier Türen als Sticker auf dem Warmen Hintergrund.
   Schilder sind direkt im Bild eingebrannt; kein Overlay-HTML nötig.
   ============================================================ */
.doors-gallery {
  padding: 1rem 0 1.5rem;
}
.doors-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  justify-items: center;
}
@media (min-width: 992px) {
  .doors-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    align-items: end;
  }
}

/* ---- Mobile: horizontaler Snap-Karussell („wischen") ----
   Der Container wird zum Flex-Track, jede Kachel snappt einzeln.
   Eine zweite Kachel lugt rechts heraus → signalisiert, dass es weitergeht. */
@media (max-width: 575.98px) {
  .doors-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: .75rem;
    padding: .5rem .25rem 1rem;
    margin: 0 -.5rem;             /* leicht über den Container hinaus, damit der Snap am Rand sauber wirkt */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;        /* keine Scrollbar (Firefox) */
  }
  .doors-grid::-webkit-scrollbar { display: none; } /* Webkit/Chrome */
  .doors-grid > .door-tile {
    flex: 0 0 78%;                /* aktuelle Tür voll + Anschnitt der nächsten */
    max-width: none;
    scroll-snap-align: center;
  }
}

.door-tile {
  display: block;
  width: 100%;
  max-width: 320px;
  text-decoration: none;
  transition: transform .25s ease, filter .25s ease;
}
.door-tile__img {
  display: block;
  width: 100%;
  height: auto;
  /* Sanfter Schatten unter der Tür, damit sie auf dem cremigen Hintergrund "steht" */
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.18));
  transition: transform .25s ease, filter .25s ease;
}
.door-tile:hover .door-tile__img,
.door-tile:focus-visible .door-tile__img {
  transform: translateY(-4px) scale(1.015);
  filter: drop-shadow(0 14px 26px rgba(0,0,0,.25)) brightness(1.03);
}
.door-tile:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 4px;
  border-radius: 8px;
}

.doors-hint {
  color: var(--muted);
  font-size: .9rem;
  margin: .35rem 0 0;
  letter-spacing: .05em;
}

.door-tile { position: relative; }
.door-tile__caption {
  display: block;
  text-align: center;
  margin-top: -.35rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(.95rem, .4vw + .8rem, 1.1rem);
  color: var(--muted);
  line-height: 1.35;
  padding: 0 .5rem;
}

/* ---------- News-Teaser auf der Startseite -------------- */
.home-news {
  background: linear-gradient(180deg, transparent 0%, #fbf5e5 100%);
}
.home-news__head { margin-bottom: 1.5rem; }
.home-news__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  font-size: clamp(1.5rem, 2vw + .8rem, 2.2rem);
  margin: 0 0 .25rem;
  position: relative;
  padding-bottom: .4rem;
}
.home-news__title::after {
  content: "";
  display: block;
  width: 60px; height: 2px;
  margin: .35rem auto 0;
  background: var(--accent);
  opacity: .35;
  border-radius: 2px;
}
.home-news__subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

.home-news__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .home-news__list { grid-template-columns: repeat(3, 1fr); }
}

.home-news__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #ebe1c9;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.home-news__card:hover,
.home-news__card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(31,58,138,.12);
  border-color: var(--accent);
  color: var(--ink);
}
.home-news__card:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }

.home-news__media {
  display: block;
  aspect-ratio: 16 / 9;
  background: #eee;
  overflow: hidden;
}
.home-news__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.home-news__card:hover .home-news__media img { transform: scale(1.04); }

.home-news__body {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem 1.1rem 1.1rem;
}
.home-news__date {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.home-news__h {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1.25;
}
.home-news__sub {
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-news__more {
  margin-top: .3rem;
  font-weight: 700;
  color: var(--accent);
  font-size: .9rem;
}

.home-news__all { margin-top: 1.5rem; }
.home-news__all .btn {
  min-height: 48px;
  padding-inline: 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
}

/* ---------- Footer -------------------------------------- */
.site-footer {
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, #fbf4e3 40%, #f5ecd6 100%);
  border-top: 1px solid #ebe1c9;
  margin-top: 3rem;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 6px;
  background: linear-gradient(180deg, rgba(0,0,0,.06), transparent);
  pointer-events: none;
}
.site-footer .container { max-width: 1100px; }

.site-footer__cols {
  justify-content: center;
  text-align: center;
}
.site-footer__cols > [class^="col-"] {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer__col-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--accent);
  font-size: 1.1rem;
  margin: 0 0 .65rem;
  position: relative;
  padding-bottom: .35rem;
}
.site-footer__col-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--accent);
  opacity: .35;
  border-radius: 2px;
}
.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer__links li { padding: .15rem 0; }
.site-footer__links a {
  color: var(--ink);
  text-decoration: none;
  font-size: .98rem;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--accent);
  border-bottom-color: currentColor;
}
.site-footer__sep {
  margin: 1.5rem auto 1rem;
  max-width: 320px;
  border: 0;
  border-top: 1px solid #ebe1c9;
}
.site-footer__copy {
  color: var(--muted);
  font-size: .9rem;
  letter-spacing: .03em;
}

/* ---------- Werbe-Slots ----------------------------------- */
.ad-slot {
  display: block;
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: .25rem 1rem;
  text-align: center;
}
.ad-slot--global_footer { margin: 2rem auto 1rem; }
.ad-slot:empty { display: none; }

/* ---------- Cookie-Banner --------------------------------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 1090;
  width: calc(100% - 2rem);
  max-width: 640px;
  background: #fff;
  border: 1px solid #c9d2e0;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
  padding: 1rem 1.25rem 1.25rem;
}
.cookie-banner__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent);
  margin: 0 0 .35rem;
}
.cookie-banner__body {
  margin: 0 0 .35rem;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ink);
}
.cookie-banner__more {
  margin: 0 0 .85rem;
  font-size: .85rem;
}
.cookie-banner__more a { color: var(--accent); text-decoration: none; }
.cookie-banner__more a:hover { text-decoration: underline; }
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.cookie-banner__actions .btn {
  flex: 1 1 200px;
  min-height: 48px;
  font-weight: 700;
}
@media (max-width: 540px) {
  .cookie-banner { left: 1rem; right: 1rem; transform: none; width: auto; }
}

/* ---------- Persönliche Score-History ---------------------------- */
.scores-head__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  font-size: clamp(1.6rem, 2vw + .8rem, 2.2rem);
  margin: 0 0 .25rem;
}
.scores-card {
  background: #fdf9ef;
  border: 1px solid #ebe1c9;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  height: 100%;
}
.scores-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--accent);
  font-size: 1.1rem;
  margin: 0 0 .5rem;
}
.scores-card__list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink);
}
.scores-card__list li { margin-bottom: .35rem; }
.scores-card__primary {
  font-family: 'Courier New', 'Menlo', monospace;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-right: .35rem;
}
.scores-history th,
.scores-history td { font-size: .95rem; }

/* ---------- Statische Seiten (Impressum, Datenschutz, Nutzung) ---- */
.static-hero {
  background: linear-gradient(180deg, #f7efde 0%, #eee0c4 100%);
  border-bottom: 4px solid var(--accent);
  text-align: center;
}
.static-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  font-size: clamp(1.6rem, 2.4vw + .8rem, 2.6rem);
  margin: 0;
}
.static-body__inner {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  background: #fff;
  border: 1px solid #ebe1c9;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.static-body__inner h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--accent);
  font-size: 1.3rem;
  margin: 1.2rem 0 .4rem;
}
.static-body__inner h2:first-child { margin-top: 0; }

/* ============================================================
   WRITERS-SEITE (grüne Tür)
   ============================================================ */
.page-writers .writers-hero {
  background: #eef5ec;
  border-bottom: 4px solid var(--green);
}
.writers-hero__img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.2));
}
.writers-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--green);
  font-size: clamp(1.6rem, 2.4vw + .8rem, 2.6rem);
  margin: 0 0 .75rem;
}
.writers-hero__subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--green);
  font-size: clamp(1.1rem, .5vw + .9rem, 1.4rem);
  margin: 0 0 1rem;
}
.writers-hero__intro {
  font-size: clamp(1rem, .6vw + .85rem, 1.15rem);
  color: var(--ink);
  margin: 0 0 .75rem;
}
.writers-hero__intro:last-child { margin-bottom: 0; }

.writers-card {
  border: 0;
  border-radius: var(--radius);
}
.writers-form .form-label { font-size: 1.05rem; }
.writers-form .form-control-lg,
.writers-form .form-control {
  font-size: 1.05rem;
}
.writers-form__or {
  color: var(--muted);
  letter-spacing: .05em;
}

.btn-writers-submit {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  min-height: 64px;
  border-radius: var(--radius);
  border: 2px solid #2f5f2f;
  box-shadow: var(--shadow-soft);
  transition: filter .15s ease, transform .15s ease;
}
.btn-writers-submit:hover,
.btn-writers-submit:focus-visible {
  color: #fff;
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.btn-writers-submit:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.btn-writers-contact {
  background: #fff;
  color: var(--green);
  border: 2px solid var(--green);
  font-weight: 700;
  min-height: 56px;
  border-radius: var(--radius);
}
.btn-writers-contact:hover,
.btn-writers-contact:focus-visible {
  background: var(--green);
  color: #fff;
}
.btn-writers-contact:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.writers-gallery__empty {
  font-style: italic;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 50ch;
  margin: 0 auto;
}
.writers-card-item__title { color: var(--green); }
.writers-submission-body { font-size: 1.05rem; line-height: 1.7; }
.writers-submission-body h2 { font-size: 1.4rem; margin-top: 1rem; }
.writers-submission-body h3 { font-size: 1.2rem; margin-top: 1rem; }
.writers-submission-body blockquote {
  border-left: 4px solid var(--green);
  padding-left: 1rem;
  color: var(--muted);
  font-style: italic;
}

/* Globaler gelber Fokus-Ring für alle Tastaturnutzer auf writers */
.page-writers :focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}

/* ---------- Reduzierte Bewegung respektieren ----------- */
@media (prefers-reduced-motion: reduce) {
  .doors-track     { scroll-behavior: auto; }
  .btn-action,
  .door-sign,
  .door-card       { transition: none; }
}
