/* ===== Design tokens ===== */
:root {
  --bg: #faf7f1;
  --surface: #ffffff;
  --surface-alt: #f1ede3;
  --text: #2b2e2a;
  --text-muted: #5c6259;
  --border: #e3ddce;
  --accent: #45604c;
  --accent-strong: #33472f;
  --accent-soft: #e3ecdf;
  --accent-contrast: #ffffff;

  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;

  --radius: 14px;
  --blob-radius: 63% 37% 54% 46% / 44% 48% 52% 56%;
  --shadow: 0 10px 30px -12px rgba(43, 46, 42, 0.18);
  --max-width: 1080px;
}

/* Always light — matches the original site, which had no dark mode. */

/* ===== Reset-ish ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; color: var(--text-muted); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--accent-contrast);
  padding: 0.75em 1em; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.85rem;
  text-decoration: none;
}
.brand-mark {
  flex-shrink: 0;
  display: flex; align-items: center;
  background: var(--accent-strong);
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
}
.brand-mark img { height: 28px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; }
.brand-text small { color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.02em; }

.primary-nav ul {
  display: flex; align-items: center; gap: 1.75rem;
}
.primary-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { color: var(--accent-strong); }
.primary-nav a[aria-current="page"] { border-color: var(--accent); }
.primary-nav a.nav-cta {
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
}
.primary-nav a.nav-cta:hover { background: var(--accent-strong); color: var(--accent-contrast); }
.primary-nav a.nav-cta[aria-current="page"] { border-color: transparent; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 20px; height: 2px; background: var(--text);
  display: block;
}

/* ===== Layout helpers ===== */
.view { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem 5rem; }
.page-header { padding: 3rem 0 1rem; }
.page-header h1 { font-size: 2.2rem; }
.lead { font-size: 1.1rem; max-width: 60ch; }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding: 4rem 0 3rem;
}
.eyebrow {
  color: var(--accent-strong);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 0.6rem;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-art {
  position: relative;
  isolation: isolate;
  max-width: 340px;
  margin: 0 auto;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-soft);
  border-radius: var(--blob-radius);
  transform: rotate(-5deg) scale(1.05) translate(10px, 12px);
  z-index: -1;
}
.hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--blob-radius);
  border: 4px solid var(--surface);
  box-shadow: var(--shadow);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.98rem;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--accent-strong); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }

/* ===== Help grid ===== */
.help-section { padding: 2rem 0; }
.help-section h2 { font-size: 1.6rem; margin-bottom: 1.5rem; }
.help-list {
  columns: 2;
  column-gap: 3rem;
  max-width: 640px;
}
.help-list li {
  break-inside: avoid;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 1.05rem;
}
.help-list li::before {
  content: "❦";
  color: var(--accent);
  margin-right: 0.7rem;
  font-weight: 400;
}

/* ===== Info cards ===== */
.info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 0;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.info-card h2 { font-size: 1.35rem; }
.info-card p:last-child { margin-bottom: 0; }

/* Plain, unboxed pair — no card chrome, just a divider line */
.detail-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  padding: 2.5rem 0;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.detail-block { position: relative; }
.detail-block:last-child::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.5rem;
  width: 1px;
  background: var(--border);
}
.detail-block h2 { font-size: 1.3rem; }
.detail-block p:last-child { margin-bottom: 0; }

/* ===== CTA band ===== */
.cta-band {
  text-align: center;
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  margin: 2.5rem 0;
}
.cta-band h2 { font-size: 1.7rem; }
.cta-band p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .btn { margin-top: 1rem; }
.cta-form {
  text-align: left;
  max-width: 460px;
  margin: 1.75rem auto 0;
}

.plain-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.plain-list li:last-child { border-bottom: none; }

/* ===== Kontakt ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 1.4rem; }
.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}
.form-row input,
.form-row textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form-row.has-error input,
.form-row.has-error textarea { border-color: #b3413c; }
.field-error { color: #b3413c; font-size: 0.85rem; margin: 0.4rem 0 0; }
.form-success {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}
.form-error {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: #fbeceb;
  color: #8f2f2a;
  font-weight: 600;
}
.form-error a { color: inherit; text-decoration: underline; }

/* Netlify honeypot field — hidden from real visitors, left for bots to fill in */
.hp-field { position: absolute; left: -9999px; }

.contact-details {
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-details h2 { font-size: 1.3rem; }
.contact-details .plain-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.detail-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.contact-details a { text-decoration: none; font-weight: 600; color: var(--accent-strong); }
.contact-details a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-inner strong { font-family: var(--font-display); font-size: 1.1rem; }
.footer-inner p { margin: 0.2rem 0 0; }
.footer-contact { display: flex; flex-direction: column; gap: 0.4rem; color: var(--text-muted); }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
  /* Explicit pixel width/height (not the aspect-ratio property) so the
     square container is guaranteed regardless of aspect-ratio support —
     that's what was stretching before. The organic blob shape itself is
     fine once the box underneath it is reliably square. */
  .hero-art {
    order: -1;
    position: relative;
    isolation: isolate;
    width: 170px;
    height: 170px;
    margin: 0 auto 1.5rem;
  }
  .hero-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent-soft);
    border-radius: var(--blob-radius);
    transform: rotate(-5deg) scale(1.05) translate(6px, 8px);
    z-index: -1;
  }
  .hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--blob-radius);
    object-fit: cover;
    border: 3px solid var(--surface);
    box-shadow: var(--shadow);
  }
  .contact-grid { grid-template-columns: 1fr; }
  .help-list { columns: 1; }
  .detail-section { grid-template-columns: 1fr; gap: 2rem; }
  .detail-block:last-child::before { display: none; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }
  .primary-nav.open { max-height: 300px; }
  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
  }
  .primary-nav li { width: 100%; }
  .primary-nav a { display: block; padding: 0.75rem 0; }
  .primary-nav a.nav-cta { display: inline-block; margin-top: 0.5rem; }
}
