:root {
  --cw-color-primary: #000000;      /* primary-color */
  --cw-color-primary-active: #676767; /* primary-active */

  --cw-color-neutral-950: #15191c;
  --cw-color-neutral-800: #24272b;
  --cw-color-neutral-600: #3d4447;
  --cw-color-neutral-400: #dcd8d3;
  --cw-color-neutral-200: #f7ebe4;
  --cw-color-neutral-0: #fef9f6;

  --cw-color-body-bg: var(--cw-color-neutral-0);
  --cw-color-body-text: var(--cw-color-neutral-800);
  --cw-color-heading: var(--cw-color-neutral-950);
  --cw-color-border: var(--cw-color-neutral-400);

  /* Typografie (Inter + Lora) */
  --cw-font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --cw-font-heading: "Lora", "Times New Roman", serif;

  /* Schriftgrößen – angelehnt an fontSizes im theme.json */
  --cw-font-size-body: 1.125rem;            /* "large" */
  --cw-font-size-h1: 3.75rem;               /* 6-x-large */
  --cw-font-size-h2: 3rem;                  /* 5-x-large */
  --cw-font-size-h3: 2rem;               /* 3-x-large */
  --cw-font-size-h4: 1.5rem;              /* 2-x-large */
  --cw-font-size-h5: 1.25rem;                /* x-large */
  --cw-font-size-h6: 1.25rem;               /* x-large */

  /* Spacing – spacingSizes aus theme.json */
  --cw-space-2xs: 0.5rem;
  --cw-space-xs: 1rem;
  --cw-space-sm: 1.5rem;
  --cw-space-md: 2rem;
  --cw-space-lg: 3rem;
  --cw-space-xl: 4rem;
  --cw-space-2xl: 6rem;

  /* Border-Radius */
  --cw-radius-none: 0;
  --cw-radius-sm: 0.125rem;
  --cw-radius-rounded: 0.25rem;
  --cw-radius-md: 0.375rem;
  --cw-radius-lg: 0.5rem;
  --cw-radius-xl: 0.75rem;
  --cw-radius-2xl: 1rem;
  --cw-radius-3xl: 1.5rem;
  --cw-radius-full: 9999px;

  /* Sonstiges */
  --cw-shadow-soft: 0 18px 40px rgba(21, 25, 28, 0.18);
  --cw-line-height-body: 1.4;
  --cw-line-height-heading: 1.0;

  /* Layout-Breiten – an layout.contentSize / wideSize angelehnt */
  --cw-content-width: min(calc(100% - var(--cw-space-xl)), 720px);
  --cw-wide-width: min(calc(100% - var(--cw-space-xl)), 1280px);
}

/* =========================================================
   Reset / Basis
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--cw-font-body);
  font-size: var(--cw-font-size-body);
  line-height: var(--cw-line-height-body);
  color: var(--cw-color-body-text);
  background: var(--cw-color-body-bg);
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Link-Verhalten wie im Theme (Unterstreichung mit Offset) */
a {
  color: var(--cw-color-primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.35em;
}

a:hover,
a:focus-visible {
  color: var(--cw-color-primary-active);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  outline: none;
}

/* =========================================================
   Layout-Helfer
   ========================================================= */

.container {
  width: 100%;
  max-width: var(--cw-wide-width);
  margin: 0 auto;
  padding-inline: var(--cw-space-xs);
}

.section {
  padding-block: var(--cw-space-2xl);
}

.section--light {
  background: #ffffff;
}

.section--highlight {
  background: var(--cw-color-neutral-200);
}

.section__header {
  max-width: var(--cw-content-width);
  margin: 0 auto var(--cw-space-lg);
}

/* =========================================================
   Typografie
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--cw-font-heading);
  color: var(--cw-color-heading);
  line-height: var(--cw-line-height-heading);
  margin-top: 0;
  margin-bottom: var(--cw-space-lg);
  -webkit-hyphens: none; 
  hyphens: none;
}

h1 {
  font-size: clamp(2.4rem, 4vw, var(--cw-font-size-h1));
}

h2 {
  font-size: clamp(2rem, 3.2vw, var(--cw-font-size-h2));
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, var(--cw-font-size-h3));
  font-weight: 400;
}

h4 {
  font-size: var(--cw-font-size-h4);
}

h5 {
  font-size: var(--cw-font-size-h5);
}

h6 {
  font-size: var(--cw-font-size-h6);
}

p {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.section__header p,
.layout-two-columns__text p {
  color: var(--cw-color-body-text);
}

.section__quote {
  margin-top: var(--cw-space-md);
  font-style: italic;
  color: var(--cw-color-neutral-600);
}

/* =========================================================
   Header & Navigation (sticky, wie im Swift-Preview)
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(254, 249, 246, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cw-color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.8rem;
}

.logo {
  font-family: var(--cw-font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cw-color-heading);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--cw-color-neutral-600);
  border-bottom: 2px solid transparent;
  padding-bottom: 0.1rem;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--cw-color-primary);
  border-bottom-color: var(--cw-color-primary);
  outline: none;
}

/* =========================================================
   Hero-Bereich
   ========================================================= */

.section--hero {
  padding-top: var(--cw-space-2xl);
  padding-bottom: var(--cw-space-xl);
  background:
    radial-gradient(circle at top left, #f7ebe4 0, #fef9f6 42%, #ffffff 100%);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: var(--cw-space-lg);
  align-items: center;
}

.hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--cw-color-neutral-600);
  margin-bottom: var(--cw-space-xs);
}

.hero__title {
  margin-bottom: var(--cw-space-sm);
}

.hero__text {
  color: var(--cw-color-neutral-800);
  margin-bottom: 0.75rem;
}

.hero__quote,
.section__quote {
  color: var(--cw-color-neutral-600);
  margin-bottom: var(--cw-space-sm);
  font-family: var(--cw-font-heading);
  line-height: 1.2;
  font-size: var(--cw-font-size-h3);
  font-style: italic;
  margin: 2rem 0;
}

/* Bild: wirklich kreisförmig */
.hero__image-wrapper {
  display: flex;
  justify-content: center;
}

.hero__image {
  width: 420px;
  aspect-ratio: 1 / 1;
  border-radius: var(--cw-radius-full);
  object-fit: cover;
  box-shadow: var(--cw-shadow-soft);
  background: #ffffff;
}

/* =========================================================
   Buttons – basierend auf custom.elements.button
   ========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--cw-space-sm);
  padding-block: var(--cw-space-2xs);
  border-radius: var(--cw-radius-full);
  border: 0;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  color: #fef9f6;
  background: var(--cw-color-neutral-950);
  transition:
    background 0.18s ease,
    transform 0.05s ease,
    box-shadow 0.18s ease;
  box-shadow: 0 10px 24px rgba(21, 25, 28, 0.3);
}

.button--primary {
  background: var(--cw-color-primary);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--cw-color-primary-active);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(19, 88, 127, 0.45);
  outline: none;
  color: white;
  text-decoration: none;  
}

/* =========================================================
   Karten & Listen
   ========================================================= */

.cards {
  display: grid;
  gap: var(--cw-space-sm);
}

.cards--grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cards--grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: #ffffff;
  border-radius: var(--cw-radius-2xl);
  padding: var(--cw-space-md);
  border: 1px solid rgba(220, 216, 211, 0.7);
  box-shadow: var(--cw-shadow-soft);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.card p,
.card li {
  color: var(--cw-color-neutral-800);
}

.list {
  padding-left: 1.1rem;
  margin: 0.75rem 0;
  color: var(--cw-color-neutral-800);
}

.list li + li {
  margin-top: 0.35rem;
}

.list--simple {
  list-style: disc outside;
}

/* =========================================================
   Text-Layouts
   ========================================================= */

.layout-two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr);
  gap: var(--cw-space-lg);
}

.layout-two-columns__text {
  max-width: var(--cw-content-width);
}

/* =========================================================
   Kontaktbox
   ========================================================= */

.contact-box {
  margin-block: var(--cw-space-md);
  padding: var(--cw-space-sm);
  border-radius: var(--cw-radius-2xl);
  border: 1px solid var(--cw-color-border);
  background: rgba(255, 255, 255, 0.92);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  border-top: 1px solid var(--cw-color-border);
  background: #ffffff;
  padding-block: var(--cw-space-sm);
  font-size: 0.85rem;
  color: var(--cw-color-neutral-600);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--cw-space-xs);
}

.footer-nav {
  display: flex;
  gap: var(--cw-space-sm);
}

.footer-nav a {
  color: var(--cw-color-neutral-600);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--cw-color-primary);
}

/* =========================================================
   Responsives Verhalten
   ========================================================= */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__image-wrapper {
    order: -1;
  }

  .section {
    padding-block: var(--cw-space-xl);
  }

  .site-header__inner {
    justify-content: center;
  }

  .main-nav {
    display: none; /* optional: später durch Mobile-Navigation ersetzen */
  }

  .layout-two-columns__text,
  .section__header {
    max-width: 100%;
  }

  .hero__image {
    width: min(220px, 60vw);
  }
}

@media (max-width: 600px) {
  body {
    font-size: 1rem; /* etwas kleiner auf sehr schmalen Geräten */
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  h2 {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    flex-direction: initial;
    gap: 1rem;
  }
}