@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #eef6fb;
  --bg-2: #f7fbfe;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: rgba(255, 255, 255, 0.97);
  --text: #1e3345;
  --muted: #5f7384;
  --line: rgba(40, 73, 96, 0.12);
  --shadow: 0 20px 46px rgba(19, 45, 67, 0.1);
  --primary: #1597e5;
  --primary-2: #1479d4;
  --sun: #fee64f;
  --pink: #f53e98;
  --lime: #bee31a;
  --orange: #ff9811;
  --title: #18344a;
  --nav-text: #27516d;
  --nav-text-active: #15354c;
  --page-accent: #178fe5;
  --page-accent-2: #a9d91e;
  --page-accent-soft: rgba(23, 143, 229, 0.14);
  --page-cloud: rgba(255, 255, 255, 0.8);
}

body.page-kunterbunt { --page-accent: #178fe5; --page-accent-2: #f53e98; --page-accent-soft: rgba(21, 151, 229, 0.16); }
body.page-team { --page-accent: #ff9811; --page-accent-2: #f53e98; --page-accent-soft: rgba(255, 152, 17, 0.16); }
body.page-villa { --page-accent: #7cc61d; --page-accent-2: #15a0ea; --page-accent-soft: rgba(124, 198, 29, 0.16); }
body.page-links { --page-accent: #15a0ea; --page-accent-2: #ffd93a; --page-accent-soft: rgba(21, 160, 234, 0.14); }
body.page-kontakt { --page-accent: #f53e98; --page-accent-2: #ff9811; --page-accent-soft: rgba(245, 62, 152, 0.14); }
body.page-impressum { --page-accent: #2f86a6; --page-accent-2: #7fd1d8; --page-accent-soft: rgba(47, 134, 166, 0.14); }
body.page-datenschutz { --page-accent: #c8a322; --page-accent-2: #f2d96a; --page-accent-soft: rgba(200, 163, 34, 0.16); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(26, 157, 229, 0.09), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(245, 62, 152, 0.08), transparent 24%),
    radial-gradient(circle at 85% 78%, rgba(190, 227, 26, 0.09), transparent 22%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 46%, #edf5f9 100%);
}

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: relative;
  overflow: clip;
  box-shadow: 0 10px 24px rgba(8, 44, 75, 0.08);
  --hero-progress: 0;
  background: linear-gradient(180deg, #d8eefc, #f2f9ff);
}
.header-hero {
  position: relative;
  min-height: clamp(300px, 39vw, 500px);
  width: 100%;
  margin: 0;
  background-image: url("/assets/header-banner-4800.jpg?v=20260619-01");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% calc(50% + (var(--hero-progress) * 1.4%));
  transition: background-position 320ms ease-out;
  will-change: background-position;
}
.header-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 79, 126, 0.22) 0%, rgba(14, 79, 126, 0.02) 42%, rgba(255, 255, 255, 0.08) 100%),
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.24), transparent 26%);
  z-index: 0;
}
.header-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(17, 127, 201, 0.14), rgba(255, 255, 255, 0.02) 42%, rgba(245, 62, 152, 0.08)),
    linear-gradient(180deg, rgba(9, 40, 62, 0.02), rgba(9, 40, 62, 0.16));
  opacity: .9;
}
.header-hero-inner {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: grid;
  padding: 0 0 88px;
}

.nav-wrap {
  position: relative;
  margin-top: -64px;
  padding: 0 8px 10px;
  z-index: 2;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 34px rgba(8, 44, 75, 0.14);
  backdrop-filter: blur(16px);
  margin-top: 0;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 52px;
  height: 52px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 28px rgba(8, 44, 75, 0.12);
  color: var(--nav-text-active);
  cursor: pointer;
  backdrop-filter: blur(16px);
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.95);
}
.nav-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--page-accent) 40%, white);
  outline-offset: 2px;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}
.nav-toggle-bar + .nav-toggle-bar {
  margin-top: 5px;
}
.nav a {
  --nav-accent: var(--page-accent);
  --nav-accent-2: var(--page-accent-2);
  min-width: 126px;
  text-align: center;
  text-decoration: none;
  color: var(--nav-text);
  padding: 12px 14px 14px;
  border-radius: 14px;
  letter-spacing: .05em;
  font-weight: 800;
  font-size: 0.76rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.28);
  position: relative;
  transition: transform 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nav-accent), var(--nav-accent-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
  opacity: .9;
}
.nav a:hover, .nav a.active {
  background: rgba(255, 255, 255, 0.95);
  color: var(--nav-text-active);
  border-color: color-mix(in srgb, var(--nav-accent) 26%, white);
  box-shadow: 0 10px 20px rgba(19, 45, 67, 0.08);
  transform: translateY(-2px);
}
.nav a:nth-child(1) { --nav-accent: #178fe5; --nav-accent-2: #f53e98; }
.nav a:nth-child(2) { --nav-accent: #ff9811; --nav-accent-2: #b04ed0; }
.nav a:nth-child(3) { --nav-accent: #7cc61d; --nav-accent-2: #15a0ea; }
.nav a:nth-child(4) { --nav-accent: #15a0ea; --nav-accent-2: #ffd93a; }
.nav a:nth-child(5) { --nav-accent: #f53e98; --nav-accent-2: #ff9811; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

main { padding: 24px 0 72px; }
.card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,252,255,.9)),
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.72));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--page-accent) 26%, white), rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}
.card.has-orbs::after {
  right: 14px;
  top: 14px;
  width: 168px;
  height: 168px;
  border-radius: 0;
  background:
    radial-gradient(circle at 27% 84%, rgba(255, 240, 147, 0.92) 0 16%, rgba(255, 240, 147, 0) 17%),
    radial-gradient(circle at 47% 47%, rgba(255, 225, 20, 0.96) 0 34%, rgba(255, 225, 20, 0) 35%),
    radial-gradient(circle at 64% 61%, rgba(245, 0, 128, 0.96) 0 16%, rgba(245, 0, 128, 0) 17%),
    radial-gradient(circle at 83% 16%, rgba(255, 78, 148, 0.9) 0 18%, rgba(255, 78, 148, 0) 19%);
  opacity: 0.95;
}
.card.has-cutout {
  overflow: visible;
}
.card.has-cutout::before {
  content: "";
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center bottom;
  z-index: 1;
}
.card.has-cutout > * {
  position: relative;
  z-index: 2;
}
.card.has-cutout.cutout-right-green::before {
  right: -24px;
  bottom: -8px;
  width: 104px;
  height: 140px;
  background-image: url("/villa_kunterbunt_cutouts_png/holding_green_blue.png");
  opacity: 0.86;
}
.card.has-cutout.cutout-right-orange::before {
  right: -28px;
  bottom: -8px;
  width: 106px;
  height: 144px;
  background-image: url("/villa_kunterbunt_cutouts_png/holding_orange_pink.png");
  opacity: 0.84;
}
.card.has-cutout.cutout-left-yellow::before {
  left: -28px;
  bottom: -8px;
  width: 108px;
  height: 148px;
  background-image: url("/villa_kunterbunt_cutouts_png/holding_yellow_orange.png");
  background-position: left bottom;
  opacity: 0.82;
}
.card.has-cutout.cutout-right-yellow::before {
  right: -28px;
  bottom: -8px;
  width: 108px;
  height: 148px;
  background-image: url("/villa_kunterbunt_cutouts_png/holding_yellow_orange.png");
  background-position: right bottom;
  opacity: 0.82;
}
.card.has-cutout.cutout-left-magenta::before {
  left: -10px;
  bottom: -10px;
  width: 68px;
  height: 118px;
  background-image: url("/villa_kunterbunt_cutouts_png/menschen/person_magenta_links.png");
  background-position: left bottom;
  opacity: 0.78;
}
.card.has-cutout.cutout-single-green::before {
  right: -12px;
  bottom: -8px;
  width: 66px;
  height: 108px;
  background-image: url("/villa_kunterbunt_cutouts_png/menschen/person_gruen_rechts.png");
  opacity: 0.82;
}
.card.has-cutout.cutout-single-orange::before {
  right: -12px;
  bottom: -8px;
  width: 64px;
  height: 108px;
  background-image: url("/villa_kunterbunt_cutouts_png/menschen/person_orange_rechts.png");
  opacity: 0.8;
}
.card.has-cutout.cutout-single-yellow::before {
  left: -10px;
  bottom: -8px;
  width: 66px;
  height: 110px;
  background-image: url("/villa_kunterbunt_cutouts_png/menschen/person_gelb_links.png");
  background-position: left bottom;
  opacity: 0.8;
}
.card.has-cutout.cutout-single-blue::before {
  right: -10px;
  bottom: -6px;
  width: 54px;
  height: 96px;
  background-image: url("/villa_kunterbunt_cutouts_png/menschen/kind_blau.png");
  opacity: 0.82;
}
.home-main .card:first-child {
  background:
    radial-gradient(circle at 12% 14%, rgba(255,255,255,.78), transparent 26%),
    linear-gradient(135deg, rgba(20, 151, 229, 0.08), rgba(245, 62, 152, 0.06) 42%, rgba(190, 227, 26, 0.08) 100%),
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(247,251,255,.92));
}

.section-label {
  font-size: .78rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--primary-2);
  font-weight: 800;
  background: linear-gradient(90deg, color-mix(in srgb, var(--page-accent) 12%, white), color-mix(in srgb, var(--page-accent-2) 14%, white), rgba(255,255,255,.86));
  padding: 5px 12px 5px 22px;
  border-radius: 999px;
  display: inline-block;
  position: relative;
}
.section-label::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--page-accent), var(--page-accent-2));
}
h1 {
  margin: 12px 0 18px;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  line-height: 1.15;
  color: var(--title);
}
h2 { color: var(--title); }
h2::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--page-accent), var(--page-accent-2));
  vertical-align: middle;
}
.no-heading-dot::after {
  display: none;
}
h3 {
  color: var(--title);
  border-left: 4px solid color-mix(in srgb, var(--page-accent) 70%, white);
  padding-left: 10px;
}
body.page-villa h3 {
  font-size: clamp(1.28rem, 2vw, 1.55rem);
  margin-top: 24px;
  margin-bottom: 12px;
}
p { line-height: 1.72; color: #375164; }
ul, ol { color: #3d586a; line-height: 1.64; }
li + li { margin-top: 4px; }
a { color: #1c74b8; }
a:hover { color: #13598f; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }

.site-footer-main {
  padding: 8px 0 34px;
}
.footer-main-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 24px;
  border: 1px solid rgba(40, 73, 96, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(245,250,253,.9));
  box-shadow: 0 16px 30px rgba(19, 45, 67, 0.08);
  color: var(--muted);
  font-size: 0.94rem;
}

/* Klare, einheitliche Portraitvorschau auf der Teamübersicht. */
@media (min-width: 641px) {
  .team-card {
    grid-template-columns: 156px minmax(0, 1fr) 132px;
    min-height: 258px;
  }
  .team-avatar {
    width: 156px;
    height: 234px;
    min-height: 234px;
    object-position: center center;
    image-rendering: auto;
  }
}
.portrait-refined {
  filter: none;
}
.footer-brand,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}
.footer-brand {
  justify-content: flex-start;
}
.footer-links {
  justify-content: flex-end;
}
.footer-designed-by {
  color: var(--muted);
}
.footer-designed-by a {
  color: var(--page-accent);
  font-weight: 800;
}
.footer-main-inner a {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 700;
}
.footer-main-inner a:hover { text-decoration: underline; }

.home-main { display: grid; gap: 22px; }
.home-intro-card {
  isolation: isolate;
}
.home-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 8px;
}
.home-hero-copy {
  position: relative;
  padding: 10px 0 0;
}
.home-kicker {
  margin: 0 0 10px;
  max-width: 58ch;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #426177;
}
.home-intro-copy {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.home-lead {
  font-size: 1.08rem;
  line-height: 1.78;
  color: #35566d;
  margin-top: 0;
}
.home-highlight {
  position: relative;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--page-accent) 14%, white);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--page-accent-2) 12%, white), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(248,252,255,.93));
  box-shadow: 0 12px 24px rgba(16, 28, 40, 0.08);
}
.home-highlight h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}
.home-highlight ul {
  margin: 0;
  padding-left: 18px;
}
.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.cta {
  display: inline-block;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  box-shadow: 0 12px 24px rgba(21, 121, 212, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(21, 121, 212, 0.24);
}
.cta.ghost {
  color: #184562;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(8, 44, 75, .14);
  box-shadow: none;
}

.team-card {
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) 132px;
  align-items: stretch;
  gap: 20px;
  padding: 24px;
  min-height: 224px;
  border-radius: 28px;
  border: 1px solid rgba(21, 51, 73, 0.12);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--page-accent-2) 12%, white), transparent 22%),
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--page-accent) 12%, white), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,254,.92));
  box-shadow: 0 14px 30px rgba(8, 44, 75, 0.1);
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.team-card::before { display: none; }
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(8, 44, 75, 0.14);
  border-color: rgba(17, 56, 81, 0.18);
}
.team-card-media {
  display: contents;
}
.team-card-body {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 8px;
  align-content: start;
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  padding-top: 4px;
}
.team-avatar {
  width: 156px;
  height: 100%;
  min-height: 176px;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid rgba(21, 51, 73, 0.1);
  box-shadow: 0 10px 18px rgba(8, 44, 75, 0.1);
  flex: 0 0 auto;
  display: block;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}
.team-logo {
  width: 132px;
  height: 82px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(21, 51, 73, 0.08);
  padding: 8px 10px;
  box-shadow: 0 8px 18px rgba(8, 44, 75, 0.08);
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  justify-self: end;
}
.team-logo-stack {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  gap: 10px;
  align-self: start;
  justify-items: end;
}
.team-logo-stack .team-logo {
  grid-column: auto;
  grid-row: auto;
  position: static;
}
.team-logo.is-placeholder {
  opacity: 0;
  pointer-events: none;
}
.team-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(21, 51, 73, 0.08);
  color: #2d5874;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.team-card h3 { margin: 4px 0 0; font-size: 1.18rem; line-height: 1.22; }
.team-role { margin: 0; color: #294960; font-weight: 700; font-size: 0.94rem; line-height: 1.48; }
.team-focus { margin: 0; color: #5f7485; line-height: 1.5; font-size: 0.93rem; }
.team-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
}
.team-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 22px;
  margin-bottom: 20px;
}
.team-intro-copy,
.team-intro-aside {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,252,255,.88));
  box-shadow: 0 10px 20px rgba(19, 45, 67, 0.06);
}
.team-intro-aside {
  position: relative;
  overflow: visible;
}
.team-intro-aside::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -8px;
  width: 100px;
  height: 132px;
  background: url("/villa_kunterbunt_cutouts_png/holding_orange_pink.png") no-repeat center bottom / contain;
  opacity: 0.7;
  pointer-events: none;
}
.team-points {
  margin: 12px 0 0;
  padding-left: 18px;
}
.team-points li + li {
  margin-top: 8px;
}
.detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: start;
  margin: 10px 0 18px;
}
.detail-heading-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}
.detail-hero {
  display: grid;
  grid-template-columns: minmax(230px, 260px) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  margin: 0 0 22px;
}
.detail-image {
  grid-column: 1;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 220px;
  border-radius: 22px;
  border: 1px solid var(--line);
  display: block;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(28, 53, 58, 0.1);
}
.detail-logo {
  width: 210px;
  height: 104px;
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid var(--line);
  display: block;
  position: static;
  margin: 0;
  background: rgba(255,255,255,.96);
  padding: 10px 14px;
  box-shadow: 0 8px 18px rgba(28, 53, 58, 0.08);
  z-index: 2;
  justify-self: end;
}
.detail-logo-stack {
  display: grid;
  gap: 12px;
  justify-items: end;
}
.detail-logo-stack .detail-logo {
  position: static;
  margin: 0;
}
.detail-role {
  margin: 0;
  color: #294960;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
}
.meta {
  display: grid;
  gap: 10px;
  grid-column: 2;
  margin: 0;
  padding: 16px 18px;
  min-height: 220px;
  height: auto;
  align-content: start;
  align-self: stretch;
  min-width: 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(63,121,178,.07), rgba(224,98,74,.07), rgba(92,148,72,.06));
}
.meta p {
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.meta strong {
  display: block;
  min-width: 0;
  margin-bottom: 2px;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px;
}
.detail-back::before { content: "\2190"; font-size: 0.95rem; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.gallery img { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.footer { padding: 0 0 40px; color: var(--muted); }

.contact-hero-card {
  background:
    linear-gradient(122deg, color-mix(in srgb, var(--page-accent) 10%, white), color-mix(in srgb, var(--page-accent-2) 12%, white), rgba(255,255,255,.82)),
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(247,250,252,.92));
}
.contact-hero-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 22px;
  align-items: start;
}
.contact-hero-copy { display: grid; gap: 8px; }
.contact-map iframe { height: 320px; }
.text-link { color: #215d8a; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.map-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(28, 53, 58, 0.12);
}
.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; }
.map-note { margin: 10px 0 0; color: var(--muted); font-size: 0.95rem; }
.contact-grid {
  margin-top: 10px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.contact-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.84));
  box-shadow: 0 8px 20px rgba(28, 53, 58, 0.08);
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 6px;
  align-items: start;
  position: relative;
  padding-right: 170px;
}
.contact-card strong {
  display: block;
  grid-column: 2;
  margin: 42px 0 4px;
  color: #244f5a;
}
.contact-card p {
  grid-column: 2;
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
}
.contact-card-link {
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.contact-card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 56, 81, 0.18);
  box-shadow: 0 14px 24px rgba(28, 53, 58, 0.12);
}
.contact-card-link p {
  margin: 0;
}
.contact-lines { color: #3d5567; overflow-wrap: anywhere; }
.contact-media {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 0;
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: stretch;
}
.contact-avatar {
  width: 152px;
  height: 100%;
  min-height: 172px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
}
.contact-logo {
  width: 160px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  padding: 6px;
  position: absolute;
  top: 18px;
  right: 18px;
}
.contact-logo.is-placeholder {
  opacity: 0;
  pointer-events: none;
}

.rooms-gallery,
.room2-layout,
.room3-layout { margin: 0 0 22px; }
.rooms-gallery { display: grid; gap: 12px; }
.rooms-gallery img,
.room2-layout img,
.room3-layout img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(28, 53, 58, 0.08);
}
.rooms-gallery-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rooms-gallery-single { grid-template-columns: 1fr; }
.rooms-gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rooms-gallery-vorraum {
  max-width: 920px;
  gap: 18px;
}
.rooms-gallery-vorraum img {
  min-height: 280px;
  object-fit: cover;
}
.room2-layout,
.room3-layout {
  display: grid;
  grid-template-columns: 1fr 0.78fr 1fr;
  gap: 12px;
  align-items: center;
}
.links-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.link-card {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,252,255,.86));
}
.link-card h3 { margin: 0 0 8px; }
.link-card p { margin: 0; }
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
}
.cookie-inner {
  width: min(720px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(22, 44, 61, 0.92);
  color: #fff;
  box-shadow: 0 18px 34px rgba(11, 28, 41, 0.24);
}
.cookie-inner p { margin: 0; color: rgba(255,255,255,0.9); }
.cookie-actions { display: flex; align-items: center; gap: 12px; }
.cookie-actions a { color: #fff; font-weight: 700; }
.cookie-actions button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 800;
  color: #163952;
  background: linear-gradient(135deg, #fff, #e8f4ff);
  cursor: pointer;
}

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

@media (max-width: 900px) {
  .grid-2, .grid-3, .gallery { grid-template-columns: 1fr; }
  .header-hero {
    min-height: clamp(228px, 60vw, 340px);
    background-position: 50% center;
    width: 100%;
  }
  .header-hero-inner { padding: 0 0 92px; }
  .nav-wrap { margin-top: -68px; padding: 0 4px; }
  .nav { gap: 8px; padding: 10px; border-radius: 16px; }
  .nav a {
    min-width: 94px;
    padding: 10px 10px 12px;
    font-size: 0.7rem;
  }
  .home-hero-panel,
  .team-intro,
  .contact-hero-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .home-hero-panel,
  .team-intro,
  .contact-hero-layout,
  .contact-grid,
  .team-grid {
    gap: 16px;
  }
  .team-grid { grid-template-columns: 1fr; }
  .team-intro-aside::after {
    display: none;
  }
  .card.has-orbs::after {
    width: 104px;
    height: 104px;
    right: 8px;
    top: 8px;
    opacity: 0.64;
  }
  .card.has-cutout.cutout-right-green::before,
  .card.has-cutout.cutout-right-orange::before,
  .card.has-cutout.cutout-left-yellow::before,
  .card.has-cutout.cutout-left-magenta::before,
  .card.has-cutout.cutout-single-green::before,
  .card.has-cutout.cutout-single-orange::before,
  .card.has-cutout.cutout-single-yellow::before,
  .card.has-cutout.cutout-single-blue::before {
    width: 58px;
    height: 82px;
    left: auto;
    right: -6px;
    bottom: -2px;
    opacity: 0.42;
    background-position: center bottom;
  }
  .contact-map iframe { height: 260px; }
  .rooms-gallery-5,
  .rooms-gallery-2,
  .room2-layout,
  .room3-layout {
    grid-template-columns: 1fr;
  }
  .rooms-gallery,
  .room2-layout,
  .room3-layout {
    gap: 10px;
  }
  .rooms-gallery-vorraum {
    max-width: none;
  }
  .rooms-gallery-vorraum img {
    min-height: 220px;
  }
  .detail-header,
  .detail-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .detail-image {
    max-width: 240px;
    height: 220px;
    min-height: 220px;
  }
  .meta {
    min-height: 0;
    height: auto;
  }
  .detail-logo {
    position: static;
    margin: 0 0 14px;
    width: min(100%, 190px);
    height: 88px;
  }
}

@media (max-width: 640px) {
  .site-header {
    overflow: visible;
  }
  .container { width: min(100% - 16px, 1180px); }
  main { padding-top: 16px; }
  .card { padding: 18px; border-radius: 22px; }
  .header-hero-inner {
    padding: 0;
  }
  h1 {
    margin: 10px 0 14px;
    font-size: clamp(1.56rem, 8vw, 2.05rem);
  }
  h2 {
    font-size: clamp(1.28rem, 6.2vw, 1.6rem);
  }
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .cookie-actions button {
    width: 100%;
    justify-content: center;
  }
  .nav-wrap {
    position: absolute;
    top: 14px;
    right: 8px;
    left: 8px;
    margin-top: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 3;
  }
  .nav-toggle {
    display: inline-flex;
    align-self: flex-end;
  }
  .nav {
    display: none;
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 10px;
    border-radius: 18px;
    width: 100%;
    margin-top: 2px;
    box-shadow: 0 18px 34px rgba(8, 44, 75, 0.18);
  }
  .site-header.nav-open .nav {
    display: grid;
  }
  .nav a {
    min-width: 0;
    width: 100%;
    padding: 11px 8px 13px;
    font-size: 0.69rem;
    letter-spacing: .035em;
  }
  .site-header.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-header.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .site-header.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .team-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }
  .team-card::before { display: none; }
  .card.has-orbs::after {
    display: none;
  }
  .team-card-media {
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
  }
  .team-avatar {
    width: 126px;
    height: 170px;
    min-height: 170px;
    border-radius: 18px;
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .team-logo {
    width: 120px;
    max-width: none;
    height: 68px;
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
  }
  .team-logo-stack {
    grid-column: 2;
    grid-row: 1;
    justify-items: start;
    gap: 8px;
  }
  .team-card-body {
    grid-column: 2;
    grid-row: 2;
  }
  .contact-media {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }
  .contact-avatar {
    width: 128px;
    height: 128px;
    flex: 0 0 auto;
  }
  .contact-logo {
    width: 120px;
    height: 58px;
    top: 18px;
    right: 18px;
  }
  .contact-card {
    grid-template-columns: 128px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 4px;
    padding-right: 144px;
  }
  .contact-card strong,
  .contact-media {
    margin-top: 14px;
  }
  .map-wrap iframe { height: 240px; }
  .map-note { font-size: 0.9rem; }
  .home-cta-row { flex-direction: column; align-items: stretch; }
  .cta { text-align: center; }
  .footer-main-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 16px 18px;
  }
  .footer-brand,
  .footer-links {
    justify-content: center;
  }
}

/* Eigene, engere Portraitausschnitte für die Teamübersicht. */
@media (min-width: 641px) {
  .team-avatar.team-avatar-close {
    height: 176px;
    min-height: 176px;
    object-position: center 18%;
  }
}

/* Einheitliche Kontaktkarten ohne Überlappung von Namen und Logos. */
@media (min-width: 641px) {
  .contact-avatar {
    height: 172px;
    min-height: 172px;
  }
  .contact-logo {
    width: 124px;
    height: 62px;
  }
}

@media (max-width: 640px) {
  .team-avatar.team-avatar-close {
    height: 170px;
    min-height: 170px;
    object-position: center 18%;
  }
}

/* Die neuen Portraits erhalten dieselbe Bildfläche wie alle Teamkarten. */
@media (min-width: 641px) {
  .team-avatar.team-avatar-close {
    height: 100%;
    min-height: 176px;
    object-position: center center;
  }
}

@media (max-width: 480px) {
  .header-hero {
    min-height: 210px;
  }
  .nav-wrap {
    top: 10px;
    right: 6px;
    left: 6px;
  }
  .section-label {
    font-size: .72rem;
    letter-spacing: .09em;
    padding: 5px 11px 5px 20px;
  }
  .team-card-body,
  .contact-card {
    gap: 6px;
  }
  .team-focus,
  .contact-card p,
  p,
  ul,
  ol {
    line-height: 1.58;
  }
  .rooms-gallery-vorraum img {
    min-height: 180px;
  }
  .contact-card {
    grid-template-columns: 1fr;
    padding-right: 18px;
    row-gap: 8px;
  }
  .contact-media,
  .contact-card strong,
  .contact-card p {
    grid-column: 1;
  }
  .contact-media,
  .contact-card strong {
    margin-top: 0;
  }
  .contact-logo {
    position: static;
    width: 124px;
    height: 60px;
    margin: 0 0 6px;
  }
  .card.has-cutout::before {
    display: none;
  }
}

/* Gestaltung 2026: Farbwelt und Bildmarke der Villa Kunterbunt */
:root {
  --bg: #f4f0e7;
  --bg-2: #fbf8f1;
  --surface: rgba(255, 253, 248, .94);
  --surface-strong: rgba(255, 253, 248, .98);
  --text: #3c3b32;
  --muted: #6e6a5e;
  --line: rgba(92, 79, 57, .16);
  --shadow: 0 18px 42px rgba(79, 65, 43, .13);
  --primary: #dd7e22;
  --primary-2: #9e4d1e;
  --sun: #f5c51a;
  --pink: #ce2176;
  --lime: #6fae36;
  --orange: #e37720;
  --title: #514435;
  --nav-text: #514436;
  --nav-text-active: #443426;
}

body.page-kunterbunt { --page-accent: #d46b20; --page-accent-2: #cb1f70; --page-accent-soft: rgba(212, 107, 32, .14); }
body.page-team { --page-accent: #9d5a2c; --page-accent-2: #d3601d; --page-accent-soft: rgba(157, 90, 44, .14); }
body.page-villa { --page-accent: #719c39; --page-accent-2: #d47b20; --page-accent-soft: rgba(113, 156, 57, .15); }
body.page-links { --page-accent: #4f9490; --page-accent-2: #efba24; --page-accent-soft: rgba(79, 148, 144, .14); }
body.page-kontakt { --page-accent: #c72a70; --page-accent-2: #d97921; --page-accent-soft: rgba(199, 42, 112, .13); }

body {
  background:
    radial-gradient(circle at 0 0, rgba(78, 146, 144, .12), transparent 28%),
    radial-gradient(circle at 100% 8%, rgba(226, 117, 32, .10), transparent 25%),
    radial-gradient(circle at 85% 78%, rgba(119, 166, 56, .10), transparent 22%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

.site-header {
  background: #6b7669;
  box-shadow: 0 8px 24px rgba(58, 54, 42, .17);
}
.header-hero {
  min-height: clamp(270px, 31vw, 470px);
  background-image: url("/assets/villa-kunterbunt-logo-wall.png");
  background-position: center center;
}
.header-hero::before {
  background: linear-gradient(180deg, rgba(35, 88, 89, .08), transparent 42%, rgba(48, 47, 35, .15));
}
.header-hero-overlay {
  background: linear-gradient(90deg, rgba(28, 91, 91, .08), transparent 38%, rgba(191, 79, 31, .07));
  opacity: 1;
}
.nav-wrap { margin-top: -58px; }
.nav {
  background: rgba(255, 251, 243, .87);
  border-color: rgba(255, 255, 255, .76);
  box-shadow: 0 14px 32px rgba(63, 52, 35, .2);
}
.nav a { background: rgba(255, 255, 255, .48); }
.nav a:hover, .nav a.active {
  background: #fffdf8;
  box-shadow: 0 9px 18px rgba(78, 59, 36, .12);
}

.card {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, .98), rgba(250, 247, 239, .93)),
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.72));
}
.home-main .card:first-child {
  background:
    radial-gradient(circle at 12% 14%, rgba(255,255,255,.9), transparent 26%),
    linear-gradient(135deg, rgba(67, 139, 137, .09), rgba(209, 42, 112, .06) 46%, rgba(216, 128, 32, .09)),
    linear-gradient(180deg, rgba(255,253,248,.98), rgba(249,246,237,.94));
}
.home-highlight, .team-intro-copy, .team-intro-aside, .contact-card, .link-card {
  background: linear-gradient(180deg, rgba(255,253,248,.98), rgba(249,245,236,.92));
}
.home-highlight { border-color: color-mix(in srgb, var(--page-accent) 22%, white); }
p { color: #5b5548; }
ul, ol { color: #5d574b; }
a { color: #9d4f21; }
a:hover { color: #733512; }
.section-label { color: #845020; }
.cta {
  background: linear-gradient(135deg, #b6501d, #e38a22);
  box-shadow: 0 12px 24px rgba(173, 77, 26, .22);
}
.cta:hover { box-shadow: 0 16px 28px rgba(173, 77, 26, .25); }
.cta.ghost { color: #694326; border-color: rgba(103, 67, 38, .18); }
.footer-main-inner {
  background: linear-gradient(180deg, rgba(255,253,248,.97), rgba(246,241,229,.93));
  border-color: rgba(98, 77, 48, .16);
}

@media (max-width: 900px) {
  .header-hero { min-height: clamp(220px, 45vw, 330px); }
  .nav-wrap { margin-top: -48px; }
}
@media (max-width: 640px) {
  .header-hero {
    min-height: 210px;
    background-position: 49% center;
  }
}
