/* Chocolate Unicorns – Australian Cobberdog Hobbyzucht */

:root {
  --color-chocolate: #4a2c2a;
  --color-chocolate-light: #6b3e3a;
  --color-chocolate-dark: #2e1a18;
  --color-cream: #faf6f1;
  --color-cream-dark: #f0e8df;
  --color-gold: #c9a962;
  --color-gold-light: #e0c98a;
  --color-text: #3d2b29;
  --color-text-muted: #6b5a58;
  --color-white: #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --shadow-sm: 0 2px 8px rgba(46, 26, 24, 0.08);
  --shadow-md: 0 8px 32px rgba(46, 26, 24, 0.12);
  --shadow-lg: 0 16px 48px rgba(46, 26, 24, 0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-chocolate-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-gold);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-chocolate-dark);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

ul, ol {
  margin: 0 0 1.25rem 1.5rem;
}

li { margin-bottom: 0.5rem; }

/* ── Layout ── */

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

.section {
  padding: 5rem 0;
}

.section--cream { background: var(--color-cream); }
.section--white { background: var(--color-white); }
.section--dark {
  background: var(--color-chocolate-dark);
  color: var(--color-cream);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--color-cream); }
.section--dark p,
.section--dark li { color: rgba(250, 246, 241, 0.85); }

.section--textured {
  background:
    linear-gradient(rgba(250, 246, 241, 0.92), rgba(250, 246, 241, 0.92)),
    var(--site-bg-texture, url('../images/bg-texture.jpg')) center / cover no-repeat;
}

/* ── Header ── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(250, 246, 241, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 44, 42, 0.08);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.logo__icon--emoji {
  background: linear-gradient(135deg, var(--color-chocolate), var(--color-gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.logo__icon--emoji[hidden] {
  display: none;
}

.logo__icon--img {
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--color-cream);
}

.logo__icon--img[hidden] {
  display: none;
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-chocolate-dark);
  line-height: 1.2;
}

.logo__tagline {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.5rem 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 8px;
  transition: all var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-chocolate);
  background: rgba(201, 169, 98, 0.15);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-chocolate);
  transition: var(--transition);
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  margin-top: var(--header-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(46, 26, 24, 0.75) 0%,
    rgba(74, 44, 42, 0.45) 50%,
    rgba(46, 26, 24, 0.6) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  color: var(--color-white);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(201, 169, 98, 0.25);
  border: 1px solid rgba(201, 169, 98, 0.5);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.25rem;
  max-width: 700px;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Page Hero (subpages) ── */

.page-hero {
  position: relative;
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(46, 26, 24, 0.7),
    rgba(74, 44, 42, 0.55)
  );
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.page-hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 600px;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-chocolate-dark);
  border-color: var(--color-gold);
}

.btn--primary:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-chocolate-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn--dark {
  background: var(--color-chocolate);
  color: var(--color-cream);
  border-color: var(--color-chocolate);
}

.btn--dark:hover {
  background: var(--color-chocolate-light);
  border-color: var(--color-chocolate-light);
  color: var(--color-cream);
  transform: translateY(-2px);
}

/* ── Cards ── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__image {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.card__body {
  padding: 1.75rem;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.card__text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* ── Content Layout (Morrowland-style density) ── */

.content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.content-block {
  max-width: 780px;
}

.content-block--wide {
  max-width: 100%;
}

.content-with-image {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.content-with-image--reverse {
  grid-template-columns: 280px 1fr;
}

.content-with-image--reverse .content-with-image__img {
  order: -1;
}

.content-with-image__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.content-with-image__img img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.content-with-image__img--landscape img {
  aspect-ratio: 4/3;
}

/* ── Upcoming Wurf Banner ── */

.section--upcoming {
  padding: 0;
  background: var(--color-chocolate-dark);
}

.section--upcoming[hidden] {
  display: none;
}

.upcoming-wurf-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  color: var(--color-cream);
}

.upcoming-wurf-banner__icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.upcoming-wurf-banner__body {
  flex: 1 1 16rem;
  min-width: 0;
}

.upcoming-wurf-banner__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 0.35rem;
}

.upcoming-wurf-banner__headline {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  margin-bottom: 0.35rem;
  color: var(--color-cream);
}

.upcoming-wurf-banner__headline strong {
  color: var(--color-gold-light);
  font-family: var(--font-display);
  font-weight: 600;
}

.upcoming-wurf-banner__date {
  color: rgba(250, 246, 241, 0.85);
}

.upcoming-wurf-banner__parents,
.upcoming-wurf-banner__teaser {
  font-size: 0.95rem;
  color: rgba(250, 246, 241, 0.8);
  margin-bottom: 0;
}

.upcoming-wurf-banner__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-shrink: 0;
}

.upcoming-wurf-banner__badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(201, 169, 98, 0.2);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
  font-size: 0.85rem;
  font-weight: 600;
}

.btn--sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .upcoming-wurf-banner {
    padding: 1.25rem 1.25rem;
  }

  .upcoming-wurf-banner__cta {
    width: 100%;
  }
}

/* ── Kontakt KI only ── */

.kontakt-ki-only {
  text-align: center;
  padding: 2rem 0 1rem;
}

.kontakt-ki-only__badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(92, 58, 33, 0.08);
  border: 1px solid var(--color-gold);
  color: var(--color-chocolate);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kontakt-ki-only h2 {
  margin-bottom: 0.5rem;
}

.kontakt-ki-only__list {
  text-align: left;
  max-width: 22rem;
  margin: 1.5rem auto;
}

.kontakt-ki-only__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.kontakt-ki-only__note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ── Info Boxes ── */

.info-box {
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  margin: 2rem 0;
  border-left: 4px solid var(--color-gold);
}

.info-box--highlight {
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.12), rgba(201, 169, 98, 0.05));
}

.info-box--important {
  background: var(--color-chocolate-dark);
  color: var(--color-cream);
  border-left-color: var(--color-gold);
}

.info-box--important p,
.info-box--important li {
  color: rgba(250, 246, 241, 0.9);
}

.info-box--important strong {
  color: var(--color-gold-light);
}

.info-box h3,
.info-box h4 {
  margin-bottom: 0.75rem;
}

/* ── MDBA Badge ── */

.mdba-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
}

.mdba-strip__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-chocolate), var(--color-chocolate-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.mdba-strip__text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-chocolate-dark);
  margin-bottom: 0.25rem;
}

.mdba-strip__text span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ── Dog Cards ── */

.dog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.dog-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.dog-card__image {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}

.dog-card__body {
  padding: 1.5rem;
}

.dog-card__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.dog-card__meta {
  font-size: 0.85rem;
  color: var(--color-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.dog-card__pedigree {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-cream-dark);
}

/* ── Timeline / Steps ── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.75rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-gold);
  color: var(--color-chocolate-dark);
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.step h4 {
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ── Litter Status ── */

.litter-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.litter-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-cream-dark);
}

.litter-card__status {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.litter-card__status--planned {
  background: rgba(201, 169, 98, 0.2);
  color: var(--color-chocolate);
}

.litter-card__status--active {
  background: rgba(74, 140, 90, 0.15);
  color: #3d6b4a;
}

.litter-card__parents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.litter-card__parent {
  padding: 1rem;
  background: var(--color-cream);
  border-radius: var(--radius);
  text-align: center;
}

.litter-card__parent strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.litter-card__parent span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ── Contact Layout ── */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

/* ── Contact Form ── */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--color-chocolate-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--color-cream-dark);
  border-radius: var(--radius);
  background: var(--color-white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-gold);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ── Footer ── */

.footer {
  background: var(--color-chocolate-dark);
  color: rgba(250, 246, 241, 0.75);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.footer__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-cream);
}

.footer__logo[hidden] {
  display: none;
}

.footer__logo-fallback {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-chocolate-light), var(--color-gold));
  font-size: 1.1rem;
}

.footer__logo-fallback[hidden] {
  display: none;
}

.footer__brand .logo__name {
  color: var(--color-cream);
  font-size: 1.5rem;
}

.footer__brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer h4 {
  color: var(--color-gold-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li {
  margin-bottom: 0.6rem;
}

.footer__links a {
  color: rgba(250, 246, 241, 0.7);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--color-gold-light);
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 246, 241, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
}

/* ── Placeholder text ── */

.placeholder {
  color: var(--color-text-muted);
  font-style: italic;
  border: 2px dashed var(--color-cream-dark);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: rgba(240, 232, 223, 0.5);
}

/* ── Divider ── */

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  border-radius: 2px;
  margin: 1rem 0 2rem;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-header .divider {
  margin: 1rem auto 0;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .content-with-image,
  .content-with-image--reverse {
    grid-template-columns: 1fr;
  }

  .content-with-image--reverse .content-with-image__img {
    order: 0;
  }

  .content-with-image__img {
    max-width: 400px;
    margin: 0 auto;
  }

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

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-cream);
    padding: 1rem;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(74, 44, 42, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__link {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle--active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    min-height: 70vh;
  }

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

  .litter-card__parents {
    grid-template-columns: 1fr;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .mdba-strip {
    flex-direction: column;
    text-align: center;
  }

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

  .chat-messages {
    min-height: 320px;
    max-height: 420px;
  }
}

/* ── KI Chat ── */

.api-banner {
  padding: 1rem 1.25rem;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius);
  color: #664d03;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.api-banner code {
  background: rgba(0, 0, 0, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}

.chat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid rgba(74, 44, 42, 0.08);
  min-height: 560px;
}

.chat-panel--claude {
  border-top: 4px solid #d4a574;
}

.chat-panel--grok {
  border-top: 4px solid var(--color-chocolate-light);
}

.chat-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--color-cream), var(--color-white));
  border-bottom: 1px solid var(--color-cream-dark);
}

.chat-panel__identity {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.chat-panel__emoji {
  font-size: 2rem;
  line-height: 1;
}

.chat-panel__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.2;
}

.chat-panel__tagline {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}

.chat-status {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  background: var(--color-cream-dark);
  color: var(--color-text-muted);
}

.chat-status--online {
  background: rgba(74, 140, 90, 0.15);
  color: #3d6b4a;
}

.chat-status--offline {
  background: rgba(180, 80, 60, 0.12);
  color: #8b3a2a;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 380px;
  max-height: 480px;
  background:
    linear-gradient(rgba(250, 246, 241, 0.5), rgba(250, 246, 241, 0.5)),
    var(--site-bg-texture, url('../images/bg-texture.jpg')) center / cover no-repeat;
}

.chat-msg {
  display: flex;
  gap: 0.6rem;
  max-width: 92%;
}

.chat-msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg--assistant {
  align-self: flex-start;
}

.chat-msg__avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.chat-msg__bubble {
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-msg--user .chat-msg__bubble {
  background: var(--color-chocolate);
  color: var(--color-cream);
  border-bottom-right-radius: 4px;
}

.chat-msg--assistant .chat-msg__bubble {
  background: var(--color-white);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.chat-msg--moderation .chat-msg__bubble {
  background: #fff8e6;
  border: 1px solid #ffc107;
  color: #664d03;
}

.chat-msg--typing .chat-msg__bubble {
  display: flex;
  gap: 5px;
  padding: 1rem 1.25rem;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background: var(--color-gold);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--color-cream-dark);
  background: var(--color-cream);
}

.chat-suggestion {
  padding: 0.4rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--color-chocolate);
  background: var(--color-white);
  border: 1px solid var(--color-cream-dark);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}

.chat-suggestion:hover {
  border-color: var(--color-gold);
  background: rgba(201, 169, 98, 0.1);
}

.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--color-cream-dark);
  background: var(--color-white);
}

.chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 2px solid var(--color-cream-dark);
  border-radius: 100px;
  outline: none;
  transition: border-color var(--transition);
}

.chat-input:focus {
  border-color: var(--color-gold);
}

.chat-send {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-chocolate-dark);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.chat-send:hover:not(:disabled) {
  background: var(--color-gold-light);
  transform: scale(1.05);
}

.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.config-preise--pending {
  color: var(--color-text-muted);
  font-style: italic;
  padding: 1rem;
  background: rgba(240, 232, 223, 0.5);
  border-radius: var(--radius);
  border: 2px dashed var(--color-cream-dark);
}

.config-preise ul {
  margin: 0.75rem 0 0 1.25rem;
}

.chat-error {
  align-self: center;
  padding: 0.75rem 1rem;
  background: rgba(180, 80, 60, 0.1);
  border: 1px solid rgba(180, 80, 60, 0.25);
  border-radius: var(--radius);
  color: #8b3a2a;
  font-size: 0.85rem;
  text-align: center;
  max-width: 90%;
}

/* ── KI Angebots-Sprechblase (am Chat-FAB) ── */

.ki-offer-bubble {
  position: fixed;
  right: 4.5rem;
  top: 50%;
  transform: translateY(-58%);
  z-index: 1098;
  width: min(280px, calc(100vw - 6.5rem));
  animation: kiOfferBubbleIn 0.55s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

.ki-offer-bubble[hidden] {
  display: none;
}

.ki-offer-bubble__main {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.9rem 2.1rem 0.9rem 1rem;
  background: linear-gradient(145deg, #fffdf9, #faf6f1);
  border: 1px solid rgba(201, 169, 98, 0.45);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.ki-offer-bubble__main::after {
  content: '';
  position: absolute;
  right: -9px;
  top: 50%;
  width: 16px;
  height: 16px;
  background: #faf6f1;
  border-right: 1px solid rgba(201, 169, 98, 0.45);
  border-top: 1px solid rgba(201, 169, 98, 0.45);
  transform: translateY(-50%) rotate(45deg);
}

.ki-offer-bubble__main:hover {
  transform: translateX(-3px);
  box-shadow: 0 12px 36px rgba(46, 26, 24, 0.18);
}

.ki-offer-bubble__kicker {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.25rem;
}

.ki-offer-bubble__title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-chocolate-dark);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.ki-offer-bubble__text {
  display: block;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  margin-bottom: 0.45rem;
}

.ki-offer-bubble__cta {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-chocolate-light);
}

.ki-offer-bubble__dismiss {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(74, 44, 42, 0.08);
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.ki-offer-bubble__dismiss:hover {
  background: rgba(74, 44, 42, 0.14);
  color: var(--color-chocolate);
}

@keyframes kiOfferBubbleIn {
  from {
    opacity: 0;
    transform: translateY(-58%) translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateY(-58%) translateX(0);
  }
}

body.ki-overlay-active .ki-offer-bubble {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .ki-offer-bubble {
    right: 3.75rem;
    width: min(240px, calc(100vw - 5rem));
    transform: translateY(-72%);
  }

  @keyframes kiOfferBubbleIn {
    from {
      opacity: 0;
      transform: translateY(-72%) translateX(14px);
    }
    to {
      opacity: 1;
      transform: translateY(-72%) translateX(0);
    }
  }
}

/* ── KI Floating Button ── */

.ki-fab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 0;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  width: 52px;
  height: 64px;
}

.ki-fab--open {
  opacity: 0;
  pointer-events: none;
}

.ki-fab:hover {
  transform: translateY(-50%) translateX(-4px);
}

.ki-fab__btn {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 64px;
  background: linear-gradient(160deg, var(--color-chocolate), var(--color-chocolate-light));
  color: var(--color-gold-light);
  border-radius: 14px 0 0 14px;
  box-shadow: -4px 4px 20px rgba(46, 26, 24, 0.25);
  animation: kiFabPulse 2.8s ease-in-out infinite;
}

.ki-fab__icon {
  width: 34px;
  height: 34px;
}

.ki-fab__ring {
  position: absolute;
  right: 0;
  top: 50%;
  width: 52px;
  height: 64px;
  margin-top: -32px;
  border-radius: 14px 0 0 14px;
  border: 2px solid var(--color-gold);
  opacity: 0;
  animation: kiFabRing 2.8s ease-out infinite;
  pointer-events: none;
}

.ki-fab__ring--delayed {
  animation-delay: 1.4s;
}

.ki-fab__label {
  position: absolute;
  right: 58px;
  white-space: nowrap;
  padding: 0.45rem 0.85rem;
  background: var(--color-chocolate-dark);
  color: var(--color-cream);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: var(--shadow-sm);
}

.ki-fab:hover .ki-fab__label {
  opacity: 1;
  transform: translateX(0);
}

@keyframes kiFabPulse {
  0%, 100% {
    box-shadow: -4px 4px 20px rgba(46, 26, 24, 0.25);
    filter: brightness(1);
  }
  50% {
    box-shadow: -4px 4px 28px rgba(201, 169, 98, 0.45);
    filter: brightness(1.08);
  }
}

@keyframes kiFabRing {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70%, 100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .ki-fab__btn {
    width: 46px;
    height: 56px;
  }

  .ki-fab__icon {
    width: 30px;
    height: 30px;
  }

  .ki-fab__ring {
    width: 46px;
    height: 56px;
    margin-top: -28px;
  }

  .ki-fab__label {
    display: none;
  }
}

/* ── KI Overlay Widget ── */

body.ki-overlay-active {
  overflow: hidden;
}

.ki-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  pointer-events: none;
  visibility: hidden;
}

.ki-overlay--open {
  pointer-events: all;
  visibility: visible;
}

.ki-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(46, 26, 24, 0.45);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.ki-overlay--open .ki-overlay__backdrop {
  opacity: 1;
}

.ki-overlay__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--color-cream);
  box-shadow: -8px 0 40px rgba(46, 26, 24, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.ki-overlay--open .ki-overlay__panel {
  transform: translateX(0);
}

.ki-overlay__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(135deg, var(--color-chocolate-dark), var(--color-chocolate));
  color: var(--color-cream);
  flex-shrink: 0;
}

.ki-overlay__header h2 {
  font-size: 1.25rem;
  color: var(--color-cream);
  margin: 0 0 0.2rem;
}

.ki-overlay__header p {
  font-size: 0.8rem;
  margin: 0;
  opacity: 0.8;
}

.ki-overlay__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-cream);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ki-overlay__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.ki-overlay__banner {
  padding: 0.6rem 1rem;
  background: #fff3cd;
  color: #664d03;
  font-size: 0.78rem;
  border-bottom: 1px solid #ffc107;
  flex-shrink: 0;
}

.ki-overlay__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-cream-dark);
  flex-shrink: 0;
}

.ki-overlay__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.75rem 0.5rem;
  border: none;
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}

.ki-overlay__tab span {
  font-size: 1.2rem;
}

.ki-overlay__tab small {
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.7;
}

.ki-overlay__tab--active {
  color: var(--color-chocolate-dark);
  background: var(--color-cream);
  border-bottom-color: var(--color-gold);
}

.ki-overlay__statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 1rem;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-cream-dark);
  flex-shrink: 0;
}

.ki-overlay__route-hint {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-align: right;
}

.chat-msg__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gold);
  margin-bottom: 0.35rem;
  opacity: 0.9;
}

.chat-msg--user .chat-msg__label {
  color: var(--color-gold-light);
}

.ki-overlay__body {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 0;
}

.ki-overlay__panel-bot {
  display: none;
  height: 100%;
}

.ki-overlay__panel-bot--active {
  display: block;
  height: 100%;
}

.chat-messages--widget {
  height: 100%;
  min-height: 0;
  max-height: none;
  border-radius: 0;
  background: var(--color-white);
}

.chat-suggestions--widget {
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
  max-height: 80px;
  overflow-y: auto;
}

.chat-form--widget {
  flex-shrink: 0;
  padding: 0.75rem 1rem;
}

.chat-interview-offer {
  margin: 0.75rem 0;
  padding: 1rem;
  background: rgba(201, 169, 98, 0.15);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
}

.chat-interview-offer p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-interview-offer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chat-interview-offer__actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
}

.ki-overlay__disclaimer {
  flex-shrink: 0;
  padding: 0.5rem 1rem 0.75rem;
  font-size: 0.68rem;
  color: var(--color-text-muted);
  text-align: center;
  background: var(--color-cream);
  margin: 0;
}

@media (max-width: 480px) {
  .ki-overlay__panel {
    width: 100vw;
  }
}

/* ── Engagement / Achievement Fortschritt ── */

.engagement-progress {
  position: fixed;
  left: 1rem;
  bottom: 1.25rem;
  z-index: 1095;
  width: min(240px, calc(100vw - 2rem));
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: engagementSlideIn 0.5s ease 0.3s both;
}

@keyframes engagementSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.engagement-progress[hidden] {
  display: none;
}

.engagement-progress__card {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(74, 44, 42, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(6px);
  cursor: default;
}

.engagement-progress--ready .engagement-progress__card {
  cursor: pointer;
  border-color: rgba(201, 169, 98, 0.45);
  background: linear-gradient(145deg, #fffdf8, #faf6f1);
}

.engagement-progress--ready:hover .engagement-progress__card {
  box-shadow: var(--shadow-lg);
  transform: translateX(-2px);
}

.engagement-progress__title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-chocolate);
  margin: 0 0 0.65rem;
  line-height: 1.3;
}

.engagement-progress__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.engagement-progress__row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.engagement-progress__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.engagement-progress__label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.engagement-progress__count {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-chocolate-light);
}

.engagement-progress__track {
  height: 5px;
  background: var(--color-cream-dark);
  border-radius: 99px;
  overflow: hidden;
}

.engagement-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-chocolate-light), var(--color-gold));
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.engagement-progress__row--done .engagement-progress__fill {
  background: linear-gradient(90deg, #5a7a52, #7a9a6e);
}

.engagement-progress__row--done .engagement-progress__label {
  color: var(--color-chocolate);
}

.engagement-progress__hint {
  margin: 0.6rem 0 0;
  font-size: 0.65rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.engagement-progress--ready .engagement-progress__hint {
  color: var(--color-chocolate-light);
  font-weight: 600;
}

.engagement-progress__ready-text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--color-text);
}

.section-header--inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: none;
  margin-bottom: 2rem;
  text-align: left;
}

.section-header--inline > div {
  text-align: left;
}

.section-header--inline .divider {
  margin: 1rem 0 0;
}

.section-header .achievement-anchor {
  margin-top: 1rem;
}

.achievement-anchor {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  flex-shrink: 0;
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  background: var(--color-cream-dark);
  border: 1px dashed rgba(74, 44, 42, 0.18);
  border-radius: 99px;
  transition: all 0.4s ease;
}

.achievement-anchor--done {
  color: var(--color-chocolate);
  background: rgba(201, 169, 98, 0.18);
  border-style: solid;
  border-color: rgba(201, 169, 98, 0.5);
}

.achievement-section--done {
  animation: achievementFade 0.6s ease;
}

@keyframes achievementFade {
  from { box-shadow: inset 0 0 0 0 rgba(201, 169, 98, 0); }
  to { box-shadow: inset 0 0 0 999px rgba(201, 169, 98, 0.04); }
}

body.ki-overlay-active .engagement-progress {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .engagement-progress {
    left: 0.75rem;
    bottom: 5.5rem;
    width: min(200px, calc(100vw - 1.5rem));
  }

  .engagement-progress__card {
    padding: 0.7rem 0.85rem;
  }
}