/* ==========================================================================
   Freiheit im Kleinformat — Reiseblog
   Design: foto-lastig, luftig, hell. Farben aus dem Logo als dezente Akzente.

   Farbpalette:
   --sand:     #EDE3D2   (warmer Hintergrund, selten eingesetzt)
   --sand-1:   #FAF6EE   (Off-white)
   --petrol:   #2F5D62   (Haupt-Akzent)
   --petrol-2: #4A8C8C   (heller Akzent)
   --sun:      #F4C542   (Highlight)
   --ink:      #1F1F1F   (Haupttext)
   --muted:    #6B6B6B
   ========================================================================== */

:root {
  --sand: #EDE3D2;
  --sand-1: #FAF6EE;
  --petrol: #2F5D62;
  --petrol-2: #4A8C8C;
  --sun: #F4C542;
  --ink: #1F1F1F;
  --muted: #6B6B6B;
  --line: rgba(31, 31, 31, 0.08);
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --radius: 4px;
  --max: 1200px;
  --max-narrow: 760px;

  /* Typografie: klassisch-moderner Reiseblog-Look */
  --font-sans: 'Helvetica Neue', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 400; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; }

p { margin-bottom: 1rem; }

a { color: var(--petrol); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sun); }

img { max-width: 100%; height: auto; display: block; }

/* ============  Header  ============ */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand img {
  height: 44px;
  width: auto;
  border-radius: 4px;
}

.brand-text .title {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-text .tagline {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  justify-content: center;
}

.nav-links a {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--ink);
  padding: 0.5rem 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--petrol);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--petrol);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.social-links {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.social-links a {
  color: var(--muted);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.social-links a:hover { color: var(--petrol); }

.social-links svg { width: 18px; height: 18px; fill: currentColor; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}

/* ============  Hero (Foto-Hero)  ============ */

.hero-photo {
  position: relative;
  height: clamp(420px, 70vh, 640px);
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.45)),
    linear-gradient(135deg, var(--petrol) 0%, var(--petrol-2) 50%, var(--sun) 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 0 1.5rem;
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.4));
}

.hero-inner {
  position: relative;
  max-width: 760px;
  z-index: 2;
}

.hero-inner .kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 1.2rem;
}

.hero-inner h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-inner .motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.hero-inner .hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============  Buttons  ============ */

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  background: var(--petrol);
  color: var(--white);
  border-color: var(--petrol);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn-light:hover {
  background: var(--sun);
  color: var(--ink);
  border-color: var(--sun);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

/* ============  Sections  ============ */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 6rem) 1.5rem;
}

.section-narrow {
  max-width: var(--max-narrow);
}

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-intro .kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--petrol);
  margin-bottom: 0.8rem;
}

.section-intro h2 {
  margin-bottom: 1rem;
}

.section-intro p {
  color: var(--muted);
  font-size: 1rem;
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--petrol);
  margin: 0 auto 2rem;
  border: none;
}

/* ============  Kategorie-Kacheln (3 große Fotos auf Startseite)  ============ */

.category-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.category-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, var(--petrol-2), var(--petrol));
  background-size: cover;
  background-position: center;
  transition: transform 0.4s;
  cursor: pointer;
  display: block;
}

.category-tile:hover { transform: scale(1.02); }

.category-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
  transition: background 0.3s;
}

.category-tile:hover::after {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.category-tile .tile-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem 1.5rem;
  z-index: 2;
  color: var(--white);
  text-align: center;
}

.category-tile .tile-label h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--white);
  letter-spacing: 0.02em;
}

.category-tile .tile-label .sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

/* ============  Post-Grid  ============ */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 3rem 2rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}

.post-card:only-child {
  max-width: 380px;
  margin: 0 auto;
}

.post-card:hover { transform: translateY(-4px); }

.post-card .card-img {
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, var(--petrol-2), var(--petrol));
  background-size: cover;
  background-position: center;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.post-card .meta {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.post-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.post-card h3 a { color: inherit; }
.post-card h3 a:hover { color: var(--petrol); }

.post-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.post-card .read-more {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--petrol);
  font-weight: 500;
}

/* ============  Artikel (einzelner Blogpost)  ============ */

.article-hero {
  height: clamp(360px, 55vh, 560px);
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.45)),
    linear-gradient(135deg, var(--petrol), var(--petrol-2));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 3rem 1.5rem;
  color: var(--white);
}

.article-hero-inner {
  max-width: var(--max-narrow);
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.article-hero .meta {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  opacity: 0.9;
}

.article-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
}

.article {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.article .lead {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2.5rem;
  text-align: center;
  line-height: 1.5;
}

.article h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.article h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.article p { font-size: 1.05rem; margin-bottom: 1.2rem; }

/* ---- Inline-Bilder im Artikel ---- */

/* Standard: volles Artikelbreite */
.article figure {
  margin: 2.5rem 0;
}

.article figure img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

.article figcaption {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.6rem;
  font-style: italic;
  letter-spacing: 0.02em;
  text-align: center;
}

/* Variante: bricht über den Artikelbereich hinaus (Fullbleed) */
.article figure.wide {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
}

.article figure.wide img {
  border-radius: 0;
  max-height: 60vh;
  object-fit: cover;
}

/* Variante: halb, linksbündig (Text fliesst rechts vorbei) */
.article figure.half-left {
  float: left;
  width: 46%;
  margin: 0.25rem 2rem 1.5rem 0;
}

/* Variante: halb, rechtsbündig (Text fliesst links vorbei) */
.article figure.half-right {
  float: right;
  width: 46%;
  margin: 0.25rem 0 1.5rem 2rem;
}

/* Clearfix nach Float-Bildern */
.article .clear {
  clear: both;
}

@media (max-width: 600px) {
  .article figure.half-left,
  .article figure.half-right {
    float: none;
    width: 100%;
    margin: 2rem 0;
  }
}

.article blockquote {
  border-left: 3px solid var(--sun);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--petrol);
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============  Content-Seiten (Über uns, Impressum, Datenschutz)  ============ */

.page-header {
  background: var(--sand-1);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.page-header .kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--petrol);
  margin-bottom: 0.8rem;
}

.page-header h1 { margin-bottom: 0.5rem; }

.page-header p {
  color: var(--muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto;
}

.content-page {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.content-page h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.content-page ul { margin: 1rem 0 1rem 1.5rem; }
.content-page li { margin-bottom: 0.5rem; }

.content-page .note {
  background: var(--sand-1);
  border-left: 3px solid var(--sun);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ============  Formular  ============ */

.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 0;
  border: none;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: transparent;
  color: var(--ink);
  transition: border-color 0.2s;
  font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--petrol);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 300;
}

.checkbox-group label {
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 300;
  margin-bottom: 0;
  line-height: 1.5;
  color: var(--muted);
}

.checkbox-group input {
  width: auto;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #E8F4F0;
  color: var(--petrol);
  border-left: 3px solid var(--petrol);
}

.form-status.error {
  display: block;
  background: #FBEAEA;
  color: #A13535;
  border-left: 3px solid #A13535;
}

/* ============  Footer  ============ */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 1.5rem 2rem;
  margin-top: 5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h4 {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  color: var(--sun);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.6rem; }

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 300;
}

.footer-col a:hover { color: var(--sun); }

.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom .social-links a { color: rgba(255, 255, 255, 0.5); }
.footer-bottom .social-links a:hover { color: var(--sun); }

/* ============  Responsive  ============ */

@media (max-width: 900px) {
  .nav-wrap {
    grid-template-columns: auto auto;
    gap: 0.5rem;
  }

  .nav-toggle { display: block; grid-column: 2; justify-self: end; }
  .social-links { display: none; }

  .nav-links {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--line);
    margin-top: 1rem;
  }

  .nav-links.open { display: flex; }

  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 1rem 0; }
  .nav-links a::after { display: none; }

  .brand-text .tagline { display: none; }

  .category-tiles { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .category-tile { aspect-ratio: 3 / 2; }

  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }
  .post-card .card-img { aspect-ratio: 16 / 9; }

  .post-grid--scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
  }
  .post-grid--scroll .post-card {
    flex: 0 0 78vw;
    max-width: 300px;
    scroll-snap-align: start;
  }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .category-tiles { grid-template-columns: 1fr; }
  .category-tile { aspect-ratio: 16 / 10; }

  .post-grid { grid-template-columns: 1fr; }
  .post-card .card-img { aspect-ratio: 16 / 9; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}
