/* ==========================================================================
   NOMAD Destination Germany — Stylesheet
   Static site, no build tool, no framework. Mobile-first.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  /* NOMAD Destination Germany — brand palette
     Distinct from, but connected to, NOMAD Travel Connectors. */
  --green: #164B3B;        /* NOMAD Green — primary: buttons, important links, selected states */
  --green-dark: #0f3a2d;   /* hover state for primary green */
  --green-tint: #e5ebe6;   /* pale green wash for notices/info boxes */
  --slate: #526878;        /* Slate Blue — secondary: labels, icons, "Destination Germany" wordmark */
  --cream: #f5f2ea;        /* Warm Cream — main page background */
  --stone: #e4e3de;        /* Light Stone Grey — alternating sections, cards, separators */
  --anthracite: #252a2d;   /* Deep Anthracite — headlines, body text, dark surfaces */
  --gold: #b59a62;         /* Muted Gold — sparing use only: hairlines, small accents */
  --white: #ffffff;
  --line: #d9d6cb;         /* hairline derived from the stone-grey family */

  /* Legacy aliases kept so every existing rule below still resolves */
  --ink: var(--anthracite);
  --ink-soft: var(--slate);
  --paper: var(--cream);
  --paper-alt: var(--stone);
  --accent: var(--green);
  --accent-dark: var(--green-dark);
  --accent-tint: var(--green-tint);

  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --measure: 68ch;
  --container: 1180px;
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.2; margin: 0 0 0.6em; color: var(--ink); }
p { margin: 0 0 1em; max-width: var(--measure); }
button, input, select, textarea { font-family: inherit; font-size: 1rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}
.section--alt { background: var(--paper-alt); }
.section--ink { background: var(--anthracite); color: var(--cream); }
.section--ink h2, .section--ink h3, .section--ink p { color: var(--cream); }

.section-label {
  display: inline-block;
  position: relative;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
  margin-bottom: 0.8rem;
  padding-bottom: 0.65rem;
}
.section-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--gold);
}
.section--ink .section-label { color: var(--gold); }
.section--ink .section-label::after { background: var(--gold); opacity: 0.6; }

.section-head { max-width: 46rem; margin-bottom: 2.25rem; }

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.15rem; }

.eyebrow {
  display: inline-block;
  position: relative;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
  margin-bottom: 1.1rem;
  padding-bottom: 0.65rem;
}
.eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--gold);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { background: transparent; color: var(--anthracite); border-color: var(--anthracite); }
.btn--ghost:hover { background: var(--anthracite); color: var(--cream); }
.section--ink .btn--ghost { color: var(--cream); border-color: var(--cream); }
.section--ink .btn--ghost:hover { background: var(--cream); color: var(--anthracite); }
.btn--wa { background: transparent; color: var(--cream); border-color: rgba(245, 242, 234, 0.4); }
.btn--wa:hover { border-color: var(--gold); color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  line-height: 1;
}
.logo__mark {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.02em;
}
.logo__sub {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--anthracite);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: rotate(-45deg); top: 0; }

.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.main-nav.is-open { display: block; }
.main-nav__list { display: flex; flex-direction: column; padding: 0.5rem 1.25rem 1.25rem; }
.main-nav__list a {
  display: block;
  padding: 0.75rem 0;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.main-nav__list a[aria-current="page"] { color: var(--green); }
.main-nav__list a.btn { border-bottom: none; margin-top: 0.75rem; text-align: center; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-header__inner { position: relative; }
  .main-nav {
    display: block;
    position: static;
    background: none;
    border: none;
  }
  .main-nav__list {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 1.75rem;
  }
  .main-nav__list a { padding: 0; border-bottom: none; }
  .main-nav__list a.btn { margin-top: 0; }
}

/* ---- Hero ---- */
.hero {
  padding: 2.5rem 0 3rem;
}
.hero__grid {
  display: grid;
  gap: 2rem;
}
.hero__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__tagline {
  margin-top: 1.5rem;
  font-family: var(--font-head);
  font-style: italic;
  color: var(--slate);
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .hero__media { aspect-ratio: 3 / 4; }
}

/* ---- Trust block ---- */
.trust {
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  background: var(--white);
  padding: 2rem 1.5rem;
}
.trust h2 { max-width: 40rem; }
.trust__points {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.trust__point { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 500; }
.trust__point svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--slate); }
@media (min-width: 700px) {
  .trust__points { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Numbered feature list (Why NOMAD / How we work) ---- */
.feature-list {
  display: grid;
  gap: 2rem;
}
.feature {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.feature__num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--slate);
  margin-bottom: 0.4rem;
}
@media (min-width: 800px) {
  .feature-list--cols3 { grid-template-columns: repeat(3, 1fr); }
  .feature-list--cols4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- People section ---- */
.people {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.people__media {
  aspect-ratio: 4 / 3;
  background: var(--paper-alt);
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}
.people__media--photo {
  aspect-ratio: 3 / 4;
  border: none;
  padding: 0;
  overflow: hidden;
}
.people__media--photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
@media (min-width: 900px) {
  .people { grid-template-columns: 0.85fr 1.15fr; }
}

/* ---- Destination cards ---- */
.card-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 700px) {
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.dest-card {
  background: var(--white);
  border: 1px solid var(--line);
}
.dest-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-alt); }
.dest-card__media img { width: 100%; height: 100%; object-fit: cover; }
.dest-card__media--placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--slate); font-size: 0.85rem; text-align: center; padding: 1rem;
}
.dest-card__body { padding: 1.25rem 1.4rem 1.5rem; }
.dest-card__body p { font-size: 0.95rem; }
.dest-card__body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.dest-card__body ul li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.5;
}
.dest-card__body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

/* ---- Service cards ---- */
.service {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
}
.service p { font-size: 0.95rem; flex-grow: 1; }
.service__link { font-weight: 600; color: var(--green); text-decoration: none; font-size: 0.9rem; }
.service__link:hover { text-decoration: underline; }

/* ---- Track record ---- */
.record-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 1rem;
}
@media (min-width: 800px) {
  .record-grid { grid-template-columns: repeat(3, 1fr); }
}
.record-item { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.record-item p { font-size: 0.95rem; }
.closing-line { margin-top: 2rem; font-style: italic; color: var(--slate); }

/* ---- Testimonials ---- */
.testimonial-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 1rem;
}
@media (min-width: 800px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.testimonial__quote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--anthracite);
  margin-bottom: 0.9rem;
}
.testimonial__quote--en {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--slate);
  margin-bottom: 0;
  flex-grow: 1;
}
.testimonial__author {
  font-weight: 600;
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  margin-top: 1.25rem;
}
.testimonial__meta {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 0.15rem;
}

/* ---- Calendar teaser ---- */
.calendar-teaser {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .calendar-teaser { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---- Closing CTA band ---- */
.cta-band { text-align: left; }
.cta-band h2 { max-width: 30rem; }
.cta-band .small-print { margin-top: 2rem; font-size: 0.85rem; color: rgba(245, 242, 234, 0.62); max-width: 55ch; }

/* ---- Mini form (homepage) ---- */
.mini-form {
  background: var(--white);
  color: var(--anthracite);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 1.75rem;
  margin-top: 2.5rem;
  max-width: 34rem;
}
.mini-form h3,
.mini-form p,
.mini-form label { color: var(--anthracite); }
.mini-form h3 { margin-bottom: 1rem; }

/* ---- Forms ---- */
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 700px) {
  .form-grid--2col { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field .hint { font-weight: 400; color: var(--slate); font-size: 0.8rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--anthracite);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
.field--checks { gap: 0.6rem; }
fieldset.field--checks { border: none; margin: 0; padding: 0; }
fieldset.field--checks legend { font-weight: 600; font-size: 0.9rem; padding: 0; margin-bottom: 0.6rem; }
.check-list { display: grid; gap: 0.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) {
  .check-list { grid-template-columns: repeat(3, 1fr); }
}
.check-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 400; }
.check-item input { width: auto; }
fieldset.has-error legend { color: #a3372c; }
.field-error {
  color: #a3372c;
  font-size: 0.82rem;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #a3372c; }
.field.has-error .field-error { display: block; }
.form-note {
  background: var(--green-tint);
  border-left: 3px solid var(--green);
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}
.form-status {
  margin-top: 1rem;
  font-weight: 600;
}
.form-status[data-state="success"] { color: var(--green); }
.form-status[data-state="error"] { color: #a3372c; }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); padding: 1.5rem 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.faq-item p { font-size: 0.95rem; margin-bottom: 0; }

/* ---- Trade fair calendar table ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table-wrap th, .table-wrap td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.table-wrap th { background: var(--paper-alt); font-weight: 600; }

/* ---- Legal pages ---- */
.legal-content h2 { margin-top: 2.5rem; font-size: 1.3rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul { list-style: disc; padding-left: 1.4rem; margin: 0 0 1em; }
.legal-content ul li { margin-bottom: 0.35rem; }
.legal-content .table-wrap { margin: 1.25rem 0; }
.legal-note {
  background: var(--green-tint);
  border-left: 3px solid var(--green);
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

/* ---- Placeholder pages ---- */
.placeholder-block {
  border: 1px dashed var(--line);
  background: var(--paper-alt);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--slate);
  font-weight: 500;
}

/* ---- Page hero (subpages) ---- */
.page-hero { padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--slate); }

/* ---- Footer ---- */
.site-footer {
  background: var(--anthracite);
  color: var(--cream);
  padding: 3rem 0 1.5rem;
}
.site-footer a { text-decoration: none; color: rgba(228, 227, 222, 0.75); }
.site-footer a:hover { color: var(--cream); }
.footer-notice {
  font-size: 0.85rem;
  color: rgba(228, 227, 222, 0.62);
  border-bottom: 1px solid rgba(245, 242, 234, 0.15);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  max-width: 60ch;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-grid h4 {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}
.footer-grid ul li { margin-bottom: 0.55rem; font-size: 0.92rem; }
.footer-brand p { color: rgba(228, 227, 222, 0.82); font-size: 0.92rem; max-width: 32ch; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 242, 234, 0.15);
  font-size: 0.82rem;
  color: rgba(228, 227, 222, 0.5);
}

/* ---- Utility ---- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }
