:root {
  --bg: #111111;
  --bg-raised: #1a1a1a;
  --ink: #f2ede4;
  --ink-dim: #a39c92;
  --line: #333029;
  --accent: #c9924f;
  --accent-bright: #e3b273;
  --accent-soft: rgba(201, 146, 79, 0.16);

  --font-display: "Newsreader", serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
}

a { color: inherit; }

/* ---------- Hero / Slideshow ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 40px 24px;
}

.slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2.4s ease;
}

.slide.active { opacity: 1; }

/* Erstes Hero-Bild: kleine Version auf Handys, große ab 800 px Breite */
.slide-first { background-image: url("images/hero-sevilla-m.webp"); }
@media (min-width: 800px) {
  .slide-first { background-image: url("images/hero-sevilla.webp"); }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(17,17,17,0.55) 0%, rgba(17,17,17,0.35) 45%, rgba(17,17,17,0.85) 100%),
    linear-gradient(90deg, rgba(17,17,17,0.35), rgba(17,17,17,0.1) 35%, rgba(17,17,17,0.1) 65%, rgba(17,17,17,0.35));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 22px;
}

.hero-logo {
  width: 130px;
  height: auto;
  margin: 0 auto 48px;
  display: block;
  animation: hero-logo-spin 40s linear infinite;
}

@keyframes hero-logo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo {
    animation: none;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.15;
  white-space: nowrap;
  margin: 0 0 28px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 34px;
  background: rgba(17, 17, 17, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-cta:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #14110b;
}

.hero-cta-main {
  font-family: var(--font-mono);
  font-size: 19px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 22px 0 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.hero-cta-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.hero-cta-stats {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.7;
  min-height: 16px;
}

/* ---------- Suche im Hero ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-search {
  position: relative;
  z-index: 5; /* Vorschlagsliste muss über dem Galerie-Button liegen */
  width: 100%;
  margin: 0 0 31px;
  text-align: left;
}

.hs-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 18px;
  background: rgba(17, 17, 17, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid var(--accent);
  border-radius: 2px;
}

.hs-box:focus-within {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hs-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 19px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 0;
  text-align: center;
}

/* Text mittig in der ganzen Box: Ausgleich für den Button rechts */
@media (min-width: 481px) {
  .hs-box input { padding-left: 94px; }
}

.hs-box input::placeholder { color: var(--ink); opacity: 1; }
.hs-box input::-webkit-search-cancel-button { -webkit-appearance: none; }

.hs-box button {
  flex: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #14110b;
  background: var(--accent);
  border-radius: 2px;
  padding: 14px 22px;
  transition: background 0.2s ease;
}

.hs-box button:hover { background: var(--accent-bright); }
.hs-box button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

#hs-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

#hs-list[hidden] { display: none; }

#hs-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 14px;
  font-size: 15px;
  cursor: pointer;
}

.hs-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
}

#hs-list li[aria-selected="true"],
#hs-list li:hover {
  background: var(--accent-soft);
  color: var(--accent-bright);
}

@media (max-width: 480px) {
  .hs-box input { font-size: 15px; letter-spacing: 0.08em; }
  .hs-box button { padding: 14px 14px; }
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, transparent, var(--accent-bright));
  animation: scroll-cue-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-cue-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  gap: 6px 22px;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-dim);
}

.site-footer nav {
  display: flex;
  gap: 22px;
}

.site-footer a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover { color: var(--accent-bright); }

.footer-sep { opacity: 0.4; }

/* ---------- Intro-Textsektion (unterhalb des Hero) ---------- */

.intro {
  background: var(--bg);
  padding: 70px 24px;
  border-top: 1px solid var(--line);
}

.intro-content {
  max-width: 720px;
  margin: 0 auto;
}

.intro-content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  margin: 0 0 22px;
  color: var(--accent-bright);
}

.intro-content p {
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.92;
  margin: 0 0 16px;
  font-size: 15px;
}

.intro-link {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Reiseziele (Block wird von build_orte.py erzeugt) */
.reiseziele { padding-top: 0; }
.reiseziele-list {
  list-style: none; margin: 18px 0 22px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 28px;
}
.reiseziele-list li { line-height: 1.5; font-size: 15px; }
.reiseziele-list .reiseziel { color: var(--ink); font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--accent); }
.reiseziele-list .reiseziel:hover { color: var(--accent-bright); }
.reiseziele-list .n { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); margin-left: 6px; }
.reiseziele-list .reiseziel-orte { font-size: 14px; color: var(--ink-dim); }
.reiseziele-list .reiseziel-orte a { color: var(--accent-bright); }

/* ---------- Legal pages (Impressum / Kontakt / Lizenz) ---------- */

.legal-page {
  min-height: calc(100vh - 74px);
  display: flex;
  flex-direction: column;
}

.legal-main {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 90px 24px 60px;
  width: 100%;
}

.legal-back {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-bright);
  text-decoration: none;
  margin-bottom: 36px;
}

.legal-back:hover { text-decoration: underline; }

.legal-main h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  margin: 0 0 8px;
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  margin: 0 0 40px;
}

.legal-main h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  margin: 36px 0 10px;
  color: var(--accent-bright);
}

.legal-main p {
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.92;
  margin: 0 0 14px;
}

.legal-main a.inline-link {
  color: var(--accent-bright);
}

.fotos-main h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  margin: 22px 0 8px 18px;
  color: var(--ink);
  opacity: 0.9;
}

.fotos-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  font-weight: 400;
}

.fotos-list {
  list-style: none;
  padding: 0 0 0 18px;
  margin: 0 0 14px;
  columns: 2;
  column-gap: 24px;
}

.fotos-list li {
  line-height: 1.9;
  font-size: 14px;
  break-inside: avoid;
}

@media (max-width: 560px) {
  .fotos-list { columns: 1; }
}

.placeholder-field {
  color: var(--accent-bright);
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 2px;
  font-style: normal;
}

.legal-note {
  margin-top: 48px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-raised);
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .site-footer { flex-direction: column; gap: 10px; text-align: center; }
  .site-footer nav { gap: 16px; }
  .hero-title { white-space: normal; }
}
