/* ------------------------------------------------------------------
   Denkparade GmbH – styles
   ------------------------------------------------------------------ */

:root {
  --color-ink: #1f2937;        /* headings, primary buttons */
  --color-ink-soft: #374151;
  --color-text: #4b5563;       /* body text */
  --color-muted: #6b7280;      /* eyebrows, labels */
  --color-bg: #ffffff;
  --color-bg-soft: #f8f9fb;
  --color-border: #e5e7eb;
  --color-badge-1: #d8d2f0;    /* lilac */
  --color-badge-2: #e0e1a9;    /* yellow-green */
  --color-badge-3: #f2c7d5;    /* pink */
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --shadow-card: 0 1px 3px rgba(31, 41, 55, 0.06), 0 8px 24px rgba(31, 41, 55, 0.05);
}

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

html {
  scroll-behavior: smooth;
  /* exactly the sticky header height (4rem + 1px border): anchored sections
     land flush under it, with no sliver of the previous section showing */
  scroll-padding-top: calc(4rem + 1px);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* sticky footer: main stretches, footer sits at the viewport bottom on short pages */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

main > section {
  flex: 1 0 auto;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--color-ink);
  line-height: 1.15;
  margin: 0 0 1rem;
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

/* Skip link (visible on keyboard focus only) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--color-ink);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.25rem 0;
}

.site-nav a:hover {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* set by the scrollspy script for the section currently in view */
.site-nav a[aria-current="true"] {
  color: var(--color-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
}
/* CSS-only mobile menu: a visually hidden checkbox holds the open/closed state.
   It stays keyboard-operable (Tab + Space); the label is the visible burger. */
.nav-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-checkbox:focus-visible ~ .nav-toggle {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-checkbox:checked ~ .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-checkbox:checked ~ .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-checkbox:checked ~ .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ------------------------------------------------------------------
   Shared section bits
   ------------------------------------------------------------------ */

section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.section-head {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto clamp(2.5rem, 6vw, 4.5rem);
}

.section-head h1,
.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border-radius: 999px;
  padding: 0.85rem 2rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--color-ink);
  color: #fff;
  box-shadow: 0 6px 16px rgba(31, 41, 55, 0.25);
}

.btn-primary:hover {
  background: #111827;
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--color-ink);
}

.btn-ghost:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.btn-block {
  display: block;
  width: 100%;
}

.text-link {
  color: var(--color-ink);
  font-weight: 600;
  text-underline-offset: 4px;
}

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

.hero {
  display: flex; /* container centers itself via margin-block: auto */
  padding: 0;    /* no generic section padding: the hero fills the first viewport exactly */
  min-height: calc(100svh - 4rem); /* viewport minus the sticky header */
  text-align: center;
}

.hero .container {
  margin-block: auto; /* vertical centering that still allows scrolling on very short viewports */
  padding: 2rem 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 38rem;
  margin: 0 auto 1.25rem;
}

.hero-values {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--color-ink-soft);
  font-weight: 500;
  margin-bottom: 2.5rem;
}

.hero-values span {
  color: var(--color-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.5rem;
}

/* ------------------------------------------------------------------
   Über mich
   ------------------------------------------------------------------ */

.about {
  background: var(--color-bg-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.about-text h1,
.about-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
}

.about-text ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.about-text li {
  margin-bottom: 0.35rem;
}

/* ------------------------------------------------------------------
   Angebot
   ------------------------------------------------------------------ */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.offer-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
}

.offer-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-ink);
  margin-bottom: 1.5rem;
}

.offer-number-1 { background: var(--color-badge-1); }
.offer-number-2 { background: var(--color-badge-2); }
.offer-number-3 { background: var(--color-badge-3); }

.offer-card h3 {
  font-size: 1.3rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.offer-card h2 {
  font-size: 1.3rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.offer-card p {
  margin: 0;
  font-size: 0.98rem;
}

.offer-cta {
  text-align: center;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

/* ------------------------------------------------------------------
   Kontakt
   ------------------------------------------------------------------ */

.contact {
  background: var(--color-bg-soft);
}

.contact-lead {
  margin-top: 0.5rem;
}

.contact-card {
  max-width: 48rem;
  margin: 0 auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.contact-info {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  background: var(--color-bg-soft);
  color: var(--color-ink-soft);
}

.contact-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.contact-info a,
.contact-info div > span:last-child {
  color: var(--color-ink);
  font-weight: 500;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--color-ink);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9ca3af;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-ink);
  outline-offset: 0;
  border-color: var(--color-ink);
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--color-muted);
  text-align: center;
}

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

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.75rem 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

/* ------------------------------------------------------------------
   Responsive breakpoints
   ------------------------------------------------------------------ */

@media (max-width: 56rem) {
  .offer-grid {
    grid-template-columns: 1fr;
    max-width: 30rem;
    margin-inline: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 24rem;
    margin-inline: auto;
  }
}

@media (max-width: 40rem) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 1.25rem 1rem;
  }

  .nav-checkbox:checked ~ .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-bg-soft);
    font-size: 1.05rem;
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-actions .btn-primary {
    width: 100%;
  }
}
