/* =====================================================================
   HUF Spedition Juist – Stylesheet
   Farben: HUF-Grün aus dem Logo, Sand/Creme als warme Akzente.
   Keine externen Schriften/Ressourcen (schnell, datenschutzfreundlich).
   ===================================================================== */

:root {
  --green: #134633;
  --green-dark: #0d3324;
  --green-light: #1f6b4c;
  --sand: #f4eede;
  --sand-dark: #e6dcc3;
  --cream: #fbf9f3;
  --ink: #23302a;
  --muted: #5d6b64;
  --white: #ffffff;
  --accent: #c8442b;          /* Rot aus dem Flyer, sparsam für Preise */
  --radius: 14px;
  --shadow: 0 8px 30px rgba(19, 70, 51, 0.12);
  --max: 1100px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;   /* Platz für den fixierten Header bei Sprungmarken */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--green-light); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green); }

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--green);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }

p { margin: 0 0 1em; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}
.container.narrow { max-width: 760px; }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--sand { background: var(--sand); }
.section--green { background: var(--green); color: var(--white); }
.section--green h2, .section--green a { color: var(--white); }
.section__intro { color: var(--muted); margin-top: -0.4rem; margin-bottom: 1.8rem; }
.lead { font-size: 1.2rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-dark);
}
.brand img { width: auto; height: 42px; }

.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.2rem; }
.nav a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--green); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(420px, 70vh, 680px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--green-dark);
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 51, 36, 0.85) 0%, rgba(13, 51, 36, 0.35) 45%, rgba(13, 51, 36, 0.05) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 3rem 0 3.5rem;
  color: var(--white);
  max-width: 720px;
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2));
}
.hero__content h1 { color: var(--white); margin-bottom: 0.4em; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sand);
  margin-bottom: 0.6rem;
}
.hero__text { font-size: 1.15rem; max-width: 540px; text-shadow: 0 1px 8px rgba(0,0,0,0.3); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--sand); color: var(--green); }
.btn--primary:hover { background: var(--white); color: var(--green); box-shadow: var(--shadow); }
.btn--ghost { border-color: rgba(255,255,255,0.8); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.btn--big { font-size: 1.35rem; padding: 0.9rem 2rem; background: var(--green); color: var(--white); }
.btn--big:hover { background: var(--green-light); color: var(--white); }

/* ---------- Angebote / Tabelle ---------- */
.table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.offers {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.offers thead th {
  background: var(--green);
  color: var(--white);
  text-align: left;
  font-weight: 700;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.offers tbody th,
.offers tbody td {
  padding: 1.05rem 1.1rem;
  vertical-align: top;
  border-top: 1px solid var(--sand-dark);
  text-align: left;
}
.offers tbody tr:nth-child(even) { background: var(--cream); }
.offers tbody tr:hover { background: #f1efe5; }
.offers .num { text-align: right; white-space: nowrap; }
.offers th:nth-child(1), .offers td:nth-child(1) { width: 20%; }
.offers th:nth-child(2), .offers td:nth-child(2) { width: 17%; white-space: nowrap; }
.offers th:nth-child(3), .offers td:nth-child(3) { width: 20%; }
.offers th:nth-child(4), .offers td:nth-child(4) { width: 33%; }
.offer__name { display: block; font-size: 1.15rem; font-weight: 700; color: var(--green); }
.offer__sub { display: block; font-size: 0.9rem; font-weight: 400; color: var(--muted); margin-top: 0.15rem; }
.price { font-weight: 700; font-size: 1.15rem; color: var(--accent); }
.offers strong { color: var(--green); }
.offers__note { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; }

.cta {
  margin-top: 2.5rem;
  text-align: center;
}
.cta__text { font-size: 1.3rem; font-weight: 600; color: var(--green); margin-bottom: 1rem; }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(320px, 42vw, 520px);
}
.gallery__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--sand);
  position: relative;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--white);
  background: linear-gradient(to top, rgba(13, 51, 36, 0.8), rgba(13, 51, 36, 0));
}
.gallery__item--tall { grid-column: span 4; }
.gallery__item--wide { grid-column: span 8; }
.gallery__item--tall img { object-position: center 55%; }

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
}
.contact__phone { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin: 0.4rem 0; }
.contact__phone a { text-decoration: none; }
.contact__phone a:hover { text-decoration: underline; }
.contact__address {
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.7;
  padding: 1.5rem 1.8rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
}

/* ---------- Footer / Impressum ---------- */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}
.footer h2 { color: var(--white); font-size: 1.3rem; }
.footer a { color: var(--sand); }
.footer__cols {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.footer__press { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); }
.footer__copy { margin-top: 1.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* =====================================================================
   Responsiv
   ===================================================================== */
@media (max-width: 900px) {
  .gallery { grid-auto-rows: auto; }
  .gallery__item--wide,
  .gallery__item--tall { grid-column: span 12; }
  .gallery__item--tall { aspect-ratio: 1 / 1; }
  .gallery__item--wide { aspect-ratio: 16 / 10; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 120px; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .brand img { height: 36px; }
  .nav { gap: 0.1rem 1rem; }
  .nav a { font-size: 0.9rem; }

  /* Tabelle wird zu Karten */
  .table-wrap { background: transparent; box-shadow: none; overflow: visible; }
  .offers thead { display: none; }
  .offers,
  .offers tbody,
  .offers tr,
  .offers th,
  .offers td { display: block; }
  .offers tr {
    background: var(--white) !important;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    overflow: hidden;
  }
  .offers tbody th,
  .offers tbody td {
    width: auto !important;
    white-space: normal;
    border-top: none;
    padding: 0.7rem 1.1rem;
    text-align: left;
  }
  .offers tbody th {
    background: var(--green);
    padding: 0.9rem 1.1rem;
  }
  .offers tbody th .offer__name { color: var(--white); }
  .offers tbody th .offer__sub { color: var(--sand); }
  .offers tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.15rem;
  }
  .offers tbody td:last-child { padding-bottom: 1rem; }
  .offers .num { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
