/* CampingNews – assets/css/style.css
   Keine externen Requests. Fonts liegen selbst gehostet in /assets/fonts/. */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --petrol: #14434C;
  --petrol-dark: #0B2A2F;
  --petrol-mid: #3C6B6A;
  --honey: #E9B44C;
  --sand: #F2EFE6;
  --paper: #FBFAF6;
  --ink: #1B2B2E;
  --body: #415356;
  --muted: #5B6A6E;
  --line: #CFD8D4;
  --wrap: 1200px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--petrol); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #0F6A6B; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 0; text-wrap: pretty; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: var(--petrol); padding: 12px 18px; z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  min-height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-solid,
.site-header--solid {
  background: var(--petrol);
  box-shadow: 0 2px 16px rgba(11, 42, 47, .18);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.logo { display: inline-flex; align-items: baseline; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.logo span:first-child { color: #fff; }
.logo span:last-child { color: var(--honey); }
.logo:hover span:first-child { color: #fff; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: rgba(255, 255, 255, .88); text-decoration: none;
  font-size: 15px; font-weight: 500; padding: 6px 0;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; font-weight: 600; box-shadow: inset 0 -2px 0 var(--honey); }

.social { display: flex; align-items: center; gap: 8px; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none;
}
.social a:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

.header-right { display: flex; align-items: center; gap: 6px; }

.nav-divider { width: 1px; height: 20px; background: rgba(255, 255, 255, .3); }

@media (max-width: 900px) {
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--petrol); padding: 8px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 15px 0; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--honey); }
  .nav-divider { display: none; }
  .site-header:has(.nav:not([hidden])) { background: var(--petrol); }
}
@media (min-width: 901px) {
  .nav-toggle { display: none; }
  .nav[hidden] { display: flex; }
}

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

.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 0 56px;
  background-color: var(--petrol-dark);
  background-image: linear-gradient(200deg, var(--petrol-mid), var(--petrol) 60%, var(--petrol-dark));
  overflow: hidden;
  isolation: isolate;
}
.hero__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(11, 42, 47, .62), rgba(11, 42, 47, .18) 42%, rgba(11, 42, 47, .82));
}
.hero__inner { max-width: 760px; }
.hero h1 { font-size: clamp(34px, 7vw, 62px); color: #fff; margin-bottom: 18px; }
.hero__lead { font-size: clamp(16px, 2.2vw, 19px); color: rgba(255, 255, 255, .9); max-width: 600px; margin-bottom: 28px; }
.hero__credit {
  position: absolute; right: 20px; bottom: 14px;
  font-size: 12px; color: rgba(255, 255, 255, .55);
}

/* ---------- Buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 13px 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  font-family: inherit; transition: transform .15s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; fill: currentColor; }

.btn--honey { background: var(--honey); color: var(--petrol); font-weight: 700; }
.btn--honey:hover { background: #F0C36B; color: var(--petrol); }
.btn--ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.btn--petrol { background: var(--petrol); color: #fff; }
.btn--petrol:hover { background: #1A5460; color: #fff; }
.btn--outline { background: none; border-color: var(--petrol); color: var(--petrol); }
.btn--outline:hover { background: rgba(20, 67, 76, .06); color: var(--petrol); }

/* ---------- Sektionen ---------- */

.section { padding: clamp(48px, 8vw, 76px) 0; }
.section--sand { background: var(--sand); }
.section--petrol { background: var(--petrol); color: #fff; }

.section__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 34px; }
.section__head h2 { font-size: clamp(26px, 4.5vw, 34px); color: var(--petrol); }
.section__rule { height: 7px; width: 72px; background: var(--honey); border-radius: 999px; }
.section__note { margin-left: auto; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .section__note { display: none; } }

.lede { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* ---------- Post-Karten ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }

.card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(20, 67, 76, .08);
}
.card__media { position: relative; background: var(--line); aspect-ratio: 4 / 5; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__flag {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(11, 42, 47, .85); color: #fff;
  font-size: 11px; font-weight: 600; line-height: 1.3;
}
.card__body { display: flex; flex-direction: column; gap: 11px; padding: 22px; flex: 1; }
.card__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.card__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--honey); }
.card__meta a { color: var(--muted); text-decoration: none; }
.card__meta a:hover { color: var(--petrol); text-decoration: underline; }
.card h3 { font-size: 20px; line-height: 1.24; color: var(--petrol); }
.card__teaser { font-size: 14.5px; line-height: 1.55; color: var(--body); }
.card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 9px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--petrol); font-size: 12.5px; font-weight: 600; text-decoration: none;
}
.chip:hover { background: var(--sand); color: var(--petrol); }
.chip svg { width: 14px; height: 14px; fill: currentColor; }
.card__source { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--petrol); }

.cards-more { display: flex; justify-content: center; margin-top: 44px; }

.cards-empty {
  background: #fff; border-radius: 20px; padding: 36px;
  box-shadow: 0 8px 24px rgba(20, 67, 76, .08);
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
.cards-empty h3 { font-size: 21px; color: var(--petrol); }
.cards-empty p { color: var(--body); max-width: 56ch; }

.card--skeleton { min-height: 420px; }
.card--skeleton .card__media { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- Tiles ---------- */

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tile { background: #fff; border-radius: 18px; padding: 30px; }
.tile__rule { width: 32px; height: 4px; background: var(--honey); border-radius: 999px; margin-bottom: 18px; }
.tile h3 { font-size: 18px; color: var(--petrol); margin-bottom: 8px; }
.tile p { font-size: 14.5px; line-height: 1.6; color: var(--body); }

/* ---------- Presse-Teaser ---------- */

.teaser { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.teaser h2 { font-size: clamp(25px, 4.5vw, 32px); color: var(--petrol); max-width: 700px; }
.teaser p { font-size: 17px; color: var(--body); }

/* ---------- Inhaltsseiten ---------- */

.page-head { background: var(--petrol); padding: calc(var(--header-h) + 54px) 0 54px; }
.page-head h1 { font-size: clamp(30px, 6vw, 48px); color: #fff; max-width: 20ch; }
.page-head p { color: rgba(255, 255, 255, .82); font-size: 17px; max-width: 60ch; margin-top: 16px; }

.prose { max-width: 70ch; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(22px, 3.5vw, 27px); color: var(--petrol); margin-top: 44px; }
.prose h3 { font-size: 18px; color: var(--petrol); margin-top: 30px; }
.prose p, .prose li { color: var(--body); }
.prose ul { padding-left: 20px; margin: 0; }
.prose li + li { margin-top: 8px; }
.prose dl { margin: 0; }
.prose dt { font-weight: 600; color: var(--petrol); margin-top: 16px; }
.prose dd { margin: 4px 0 0; color: var(--body); }

.placeholder {
  background: var(--sand); border-radius: 14px; padding: 20px 22px;
  font-size: 14.5px; color: var(--body);
}
.placeholder strong { color: var(--petrol); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 44px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Formular ---------- */

.form { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--petrol); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink);
  font-family: inherit; font-size: 16px; line-height: 1.5;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--petrol); outline: none; }
.field__hint { font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: 14px; padding: 16px 18px; font-size: 15px; }
.notice--ok { background: #E4EFE7; color: #1E4A2E; }
.notice--err { background: #F6E3DC; color: #7A2E17; }

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

.site-footer { background: var(--petrol-dark); color: rgba(255, 255, 255, .8); padding: 52px 0 28px; }
.site-footer__top {
  display: flex; flex-wrap: wrap; gap: 28px 40px; justify-content: space-between; align-items: flex-start;
  padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.site-footer__claim { font-size: 14px; color: rgba(255, 255, 255, .65); margin-top: 10px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; }
.footer-nav a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.footer-nav a:hover { color: var(--honey); }
.site-footer__copy { padding-top: 20px; font-size: 12.5px; color: rgba(255, 255, 255, .45); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
