/* =========================
   Base / reset
   ========================= */

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.65), transparent 30%),
    linear-gradient(to bottom, #f7f4ed, #f4efe6);
}

/* =========================
   Design tokens
   ========================= */

:root {
  /* Color palette */
  --bg: #f7f4ed;
  --surface: rgba(255, 250, 243, 0.86);
  --surface-strong: #f8f3ea;
  --text: #3e4038;
  --text-secondary: #5a5e52;
  --text-tertiary: #4a5141;
  --muted: #5e6357;
  --accent-line: #91a876;

  /* Brand colors */
  --brand-green: #667c56;
  --brand-green-soft: #90a77b;
  --brand-green-bright: #8ab263;
  --brand-orange: #dc8a35;
  --brand-orange-dark: #bf7225;
  --line: rgba(84, 93, 76, 0.15);

  /* Border radius - consistent hierarchy */
  --radius-sm: 0.4rem;
  --radius: 1.25rem;
  --radius-lg: 1.75rem;
  --radius-pill: 999px;

  /* Shadow system */
  --shadow: 0 10px 30px rgba(60, 53, 40, 0.08), 0 2px 8px rgba(60, 53, 40, 0.05);
  --shadow-sm: 0 2px 8px rgba(60, 53, 40, 0.05);
  --shadow-md: 0 6px 18px rgba(60, 53, 40, 0.08);
  --shadow-lg: 0 12px 28px rgba(60, 53, 40, 0.12);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.6);

  --text-sm: clamp(0.95rem, 0.9rem + 0.2vw, 1rem);
  --text-md: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --text-lg: clamp(1.2rem, 1rem + 0.8vw, 1.8rem);
  --text-xl: clamp(1.9rem, 1.3rem + 2vw, 3.4rem);
  --text-script: clamp(1.8rem, 1.2rem + 1.8vw, 3rem);
  --script-font: 'Patrick Hand', "Brush Script MT", "Segoe Script", "Snell Roundhand", cursive;

  /* Primary type scale and font stacks */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading-1: clamp(2.2rem, 1.8rem + 2vw, 3rem);
  --heading-2: clamp(1.2rem, 1.1rem + 1.2vw, 2.4rem);
  --heading-3: clamp(1.2rem, 1rem + 0.8vw, 1.8rem);

  /* Transition timing */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 400ms ease;
}

/* =========================
   Typography
   ========================= */


.caveat-400 {
  font-family: "Caveat", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
.caveat-700 {
  font-family: "Caveat", cursive;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

/* Role-based handwritten / display headings */
.handwritten,
.offer-card h3 {
  font-family: var(--script-font);
  font-weight: 400;
  color: var(--brand-green);
  line-height: 1.1;
}

.schlagwort {
  font-family: "Caveat";
  font-weight: 400;
  color: var(--brand-green);
  line-height: 1.1;
}
.section-title {
  font-size: var(--text-script);
  font-family: "Caveat", cursive;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--brand-green);
  line-height: 1.1;
}

.kasten-titel {
  font-family: "Caveat", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: var(--brand-green);
  line-height: 1.1;
  font-size: var(--text-lg);
}
.prompt-card h2,
.info-box h3,
.offer-card h3 {
  font-size: var(--heading-2);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--brand-green);
  font-family: var(--font-sans);
}

.curved-section h3 {
  color: var(--brand-green-bright);
}

.profile-image {
  display: block;
  width: 70%;
  margin-inline: auto;
}


.section-title::before,
.section-title::after {
  content: "";
  height: 1px;
  flex: 1 1 100px;
  background: var(--line);
}

.accent-line {
  position: relative;
  display: inline-block;
}

.accent-line::after {
  content: "";
  display: block;
  width: 8rem;
  height: 0.35rem;
  margin: 0.75rem auto 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
  opacity: 0.7;
}

/* =========================
   Accessibility helper
   ========================= */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 1000;
  background: #ffffff;
  color: #000000;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 1rem;
}

/* =========================
   Header & Nav
   ========================= */

.site-header {
  background: rgba(248, 244, 237, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand-title {
  font-family: var(--script-font);
  font-size: clamp(1.8rem, 1.25rem + 1.25vw, 2.8rem);
  color: var(--brand-green);
}

.custom-nav-link {
  position: relative;
  color: var(--text) !important;
  font-size: var(--text-sm);
  text-decoration: none;
  display: inline-block;
  padding-bottom: 0.2rem;
}

.custom-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

.custom-nav-link:hover::after,
.custom-nav-link:focus-visible::after {
  transform: scaleX(1);
}

/* =========================
   Buttons & Links
   ========================= */

.custom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
  color: #fffdf9 !important;
  background: linear-gradient(180deg, #a2c072, var(--brand-green-bright));
  border: none;
}

.custom-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg) !important;
  background: linear-gradient(180deg, #b4cc82, #8db065);
}

.custom-btn:active {
  transform: translateY(0);
  background: linear-gradient(180deg, #8db065, #6f9a59);
}

.custom-link {
  color: var(--brand-green) !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.25rem !important;
  transition: color var(--transition-base), text-decoration-color var(--transition-base);
}

.custom-link:hover,
.custom-link:focus-visible {
  color: var(--brand-orange) !important;
  text-decoration-color: var(--brand-orange) !important;
}

/* =========================
   Hero
   ========================= */

.hero-image {
  min-height: min(72svh, 46rem);
  background:
    linear-gradient(to right, rgba(28, 36, 24, 0.45), rgba(28, 36, 24, 0.08) 48%, rgba(28, 36, 24, 0.1)),
    url("images/hero.jpg") center / cover no-repeat;
}

.hero-copy p {
  font-family: "Caveat"; cursive;
  font-size: var(--text-script);
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

@media (max-width: 700px) {
  .hero-copy p {
    font-size: clamp(1.4rem, 1.2rem + 1.5vw, 2rem);
  }
}

/* =========================
   Intro cards
   ========================= */

.bg-gradient-custom {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0)),
    transparent;
}

.prompt-card {
  position: relative;
  min-height: 11rem;
  /* soft paper look */
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.8), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.6), transparent 60%),
    linear-gradient(180deg, #f6f1e7, #efe7da);
  border: 1px solid rgba(120, 110, 90, 0.08);
  box-shadow: var(--shadow-md), var(--shadow-inset);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
}

.prompt-card:active {
  transform: translateY(1px) scale(0.99);
}

.prompt-card h2::after {
  content: "";
  display: block;
  width: 60%;
  height: 0.35rem;
  margin: 0.6rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(235, 159, 81, 0.8), transparent);
  border-radius: var(--radius-pill);
  opacity: 0.7;
}

/* subtle organic variation */
.prompt-card:nth-child(1) {
  transform: rotate(-1deg);
}
.prompt-card:nth-child(2) {
  transform: rotate(0.5deg);
}
.prompt-card:nth-child(3) {
  transform: rotate(-0.5deg);
}

/* hover = slight lift */
.prompt-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-lg), var(--shadow-inset);
}

/* =========================
   CTA band
   ========================= */

.cta-band {
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.15), transparent 30%),
    radial-gradient(circle at 85% 70%, rgba(255, 255, 255, 0.12), transparent 25%),
    linear-gradient(180deg, #98b08a, #7e966e);
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  left: -5%;
  width: 110%;
  height: 4rem;
  background: var(--bg);
}

.cta-band::before {
  top: -2rem;
  border-bottom-left-radius: 55% 100%;
  border-bottom-right-radius: 45% 100%;
}

.cta-band::after {
  bottom: -2rem;
  border-top-left-radius: 45% 100%;
  border-top-right-radius: 55% 100%;
}

/* =========================
   Info boxes
   ========================= */

.info-box {
  background: linear-gradient(180deg, #f6f1e7, #efe7da);
  border: 1px solid rgba(120, 110, 90, 0.08);
  box-shadow: var(--shadow-md), var(--shadow-inset);
}

.qualification-logo-wrap {
  display: inline-block;
  width: 120px;
  max-width: 42%;
  opacity: 0.95;
  margin: 0.25rem auto 0;
}

.qualification-logo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.info-box h3 {
  color: var(--brand-green-bright);
}

@media (max-width: 576px) {
  .qualification-logo-wrap {
    width: 100px;
    max-width: 56%;
  }
}

/* =========================
   Curved section
   ========================= */

.curved-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
  border-radius: var(--radius);
}

.curved-section::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -10%;
  width: 120%;
  height: 40px;
  background: var(--bg);
  border-bottom-left-radius: 50% 100%;
  border-bottom-right-radius: 50% 100%;
}

/* =========================
   Responsive titles
   ========================= */

@media (max-width: 600px) {
  .section-title {
    font-size: clamp(1.4rem, 1.2rem + 1vw, 2.2rem);
    gap: 0.5rem;
  }
}

/* =========================
   Motion preferences
   ========================= */

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

section[id] {
  scroll-margin-top: 5rem;
}
