/* CK Immos — editorial Makler-Design */
:root {
  --ink: #12151c;
  --ink-soft: #3d4451;
  --paper: #fbfaf7;
  --paper-2: #f0ebe3;
  --line: rgba(18, 21, 28, 0.08);
  --accent: #1e3a5f;
  --accent-2: #2d5a8c;
  --warm: #b8860b;
  --warm-soft: rgba(184, 134, 11, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 20px 50px rgba(18, 21, 28, 0.08);
  --shadow-sm: 0 8px 24px rgba(18, 21, 28, 0.06);
  --font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: Georgia, "Times New Roman", "Palatino Linotype", serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rise {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.65;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.4rem 0.8rem;
  z-index: 100;
  text-decoration: none;
  border-radius: 6px;
}

.skip:focus {
  left: 0.5rem;
}

.shell {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— Header —— */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}

.top.is-scrolled {
  box-shadow: 0 10px 30px rgba(18, 21, 28, 0.06);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.logo__mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-2) 55%, #6b8cae 100%);
  box-shadow: 0 6px 18px rgba(30, 58, 95, 0.28);
}

.logo__img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(30, 58, 95, 0.22);
  flex-shrink: 0;
}

.logo__img--brand {
  width: auto;
  max-width: min(200px, 42vw);
  height: 2.65rem;
  object-fit: contain;
  border-radius: 8px;
}

.logo__text {
  font-family: var(--display);
  font-weight: 600;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.35rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav a:hover {
  color: var(--accent);
}

.nav a.is-on {
  color: var(--accent);
  border-bottom-color: var(--warm);
}

.nav__cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.55rem 1.2rem !important;
  border-radius: 999px;
  border: none !important;
  font-weight: 500;
}

.nav__cta:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

/* —— Nützliches (Untermenü) —— */
.nav__group {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__parent {
  display: inline-block;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  user-select: none;
}

.nav__group--active .nav__parent {
  color: var(--accent);
  border-bottom-color: var(--warm);
}

.nav__sub {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  display: none;
  flex-direction: column;
  gap: 0;
  min-width: 15rem;
  padding: 0.4rem 0;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  z-index: 60;
}

.nav__group:hover .nav__sub,
.nav__group:focus-within .nav__sub {
  display: flex;
}

.nav__sub a {
  padding: 0.5rem 1rem !important;
  border-bottom: none !important;
}

.nav__sub a.is-on {
  background: var(--warm-soft);
}

@media (max-width: 880px) {
  .menu-btn {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition:
      max-height 0.35s ease,
      opacity 0.2s ease,
      visibility 0.2s linear;
  }

  .nav.is-open {
    max-height: min(90vh, 560px);
    padding: 0.75rem 1.25rem 1.25rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
  }

  .nav a {
    padding: 0.65rem 0;
  }

  .nav__group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav__group:focus {
    outline: none;
  }

  .nav__parent {
    padding: 0.65rem 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: none;
  }

  .nav__group--active .nav__parent {
    color: var(--accent);
  }

  .nav__sub {
    position: static;
    display: flex !important;
    visibility: visible;
    min-width: 0;
    padding: 0 0 0.35rem 0.75rem;
    margin: 0 0 0.25rem;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .nav__sub a {
    padding: 0.5rem 0 !important;
  }

  .nav__sub a.is-on {
    background: transparent;
  }

  .top {
    position: relative;
  }

  .top__inner {
    flex-wrap: nowrap;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: clamp(3.5rem, 10vw, 6.5rem) 0 clamp(4rem, 12vw, 7rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 85% 10%, rgba(30, 58, 95, 0.09), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(184, 134, 11, 0.07), transparent 45%),
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 42%);
  pointer-events: none;
}

.hero--panorama::before {
  background:
    linear-gradient(
      105deg,
      rgba(251, 250, 247, 0.94) 0%,
      rgba(251, 250, 247, 0.82) 38%,
      rgba(251, 250, 247, 0.55) 72%
    ),
    var(--hero-panorama) center / cover no-repeat,
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 42%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 21, 28, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 21, 28, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black, transparent);
  pointer-events: none;
}

.hero .shell {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero .shell {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.65rem;
}

.hero .hero__kolsch {
  margin-top: 0;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.8vw, 3.15rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero__lead {
  margin: 0 0 1.75rem;
  font-size: 1.18rem;
  max-width: 38ch;
  color: var(--ink-soft);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.75rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(30, 58, 95, 0.22);
}

.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn--line {
  background: transparent;
  color: var(--ink);
  border-color: rgba(18, 21, 28, 0.18);
}

.btn--line:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero__panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, #e8edf4 0%, #dfe6f0 100%);
  aspect-ratio: 5 / 4;
  max-height: 420px;
}

.hero__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 35%, rgba(18, 21, 28, 0.18));
  pointer-events: none;
}

.hero__panel-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.hero__panel-inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.hero__stat {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  max-width: 260px;
}

.hero__stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
}

.hero__stat span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* —— Strip —— */
.strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 2.5rem;
}

.strip__item {
  padding: 1.15rem 1.25rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.strip__item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.strip__item span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.section--tint {
  background: linear-gradient(180deg, #fff 0%, var(--paper-2) 100%);
}

.section__head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section__head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.section__head p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/** Volle Shell-Breite wie darunterliegende Grids/Karten (Standard: max. 640px) */
.section__head--wide {
  max-width: none;
}

.section__head--wide p {
  max-width: none;
}

/* —— USP cards —— */
.grid-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
}

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

.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--warm-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* —— Team —— */
.team {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.person {
  text-align: center;
  padding: 1.5rem 1rem 1.75rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.person__photo {
  width: 112px;
  height: 112px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--paper-2), #e0e5ec) center / cover no-repeat;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
}

.person__photo--file {
  background-color: var(--paper-2);
  object-fit: cover;
  display: block;
}

.person--icon .person__icon-wrap {
  width: 112px;
  height: 112px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--paper-2), #e8ecf4);
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
  color: var(--accent);
}

.person--icon .person__icon-wrap svg {
  width: 52px;
  height: 52px;
}

.person h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.person p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* —— CTA —— */
.cta {
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 3.5rem) 1.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, #152a45 100%);
  border-radius: var(--radius-lg);
  color: #e8edf5;
  box-shadow: var(--shadow);
}

.cta h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  color: #fff;
}

.cta p {
  margin: 0 0 1.35rem;
  opacity: 0.92;
}

.cta .btn--primary {
  background: #fff;
  color: var(--accent);
  box-shadow: none;
}

.cta .btn--primary:hover {
  background: var(--paper-2);
}

/* —— Page simple —— */
.page-head {
  padding: 2.5rem 0 1rem;
}

.page-head h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  color: var(--ink);
}

.page-head p {
  margin: 0;
  max-width: 62ch;
  font-size: 1.05rem;
}

.prose {
  max-width: 65ch;
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose h2 {
  margin: 1.75rem 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 1.45rem);
  font-weight: 600;
  color: var(--ink);
}

.prose h3 {
  margin: 1.5rem 0 0.65rem;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.prose.impressum-legal sup {
  font-size: 0.72em;
  line-height: 0;
  font-weight: 600;
}

.prose .impressum-meta {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.1rem;
}

.prose .impressum-meta li {
  margin-bottom: 0.5rem;
}

.prose .impressum-meta li:last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.35rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose blockquote {
  margin: 0 0 1.1rem;
  padding: 0.75rem 1rem 0.75rem 1.15rem;
  border-left: 3px solid var(--accent-2);
  color: var(--ink-soft);
  font-style: italic;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose figure {
  margin: 1.25rem 0;
}

.prose figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.prose .blog-hero-fig {
  margin: 0 0 1.25rem;
}

.prose .blog-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-2);
  text-transform: none;
}

.prose .blog-fig-grid {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}

@media (min-width: 540px) {
  .prose .blog-fig-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.prose .blog-fig--phone {
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

/* —— Blog —— */
.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-list li {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.blog-list a {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.blog-list a:hover {
  color: var(--accent-2);
}

.blog-list time {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

/* —— Forms —— */
.form {
  max-width: 480px;
}

.form label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  margin-bottom: 1rem;
  background: #fff;
}

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

.form--contact {
  max-width: none;
}

.form--contact textarea {
  min-height: 260px;
  line-height: 1.5;
  padding: 0.85rem 1rem;
}

.form--contact input::placeholder,
.form--contact textarea::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

/* —— Kontakt: Foto + Formular —— */
.kontakt-page .page-head p {
  max-width: none;
}

.kontakt-page .page-head__sub {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.contact-split {
  display: grid;
  gap: 2rem;
  align-items: start;
  margin-top: 0.5rem;
}

@media (min-width: 880px) {
  .contact-split {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    gap: 2.5rem 3rem;
  }
}

.contact-split__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  background: var(--paper-2);
}

.contact-split__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

@media (max-width: 879px) {
  .contact-split__figure {
    max-width: 320px;
    margin: 0 auto;
  }
}

.form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.note {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.note--ok {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.note--err {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

/* —— Partner-Netzwerk —— */
.partner-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.partner-card {
  padding: 1.35rem 1.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.partner-card--focus {
  border-color: rgba(30, 58, 95, 0.25);
  box-shadow: 0 12px 36px rgba(30, 58, 95, 0.08);
}

.partners .partner-card {
  border-color: rgba(30, 58, 95, 0.25);
  box-shadow: 0 12px 36px rgba(30, 58, 95, 0.08);
}

.partners .section__head {
  max-width: none;
}

.partners .section__head p {
  max-width: none;
}

.partners .partner-card__text {
  max-width: none;
}

.partner-card__thumb {
  display: block;
  width: 100%;
  max-height: 140px;
  margin: 0 auto 1rem;
  object-fit: contain;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
}

.partner-card__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm);
}

.partner-card__title {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.2rem;
}

.partner-card__title a {
  color: var(--ink);
  text-decoration: none;
}

.partner-card__title a:hover {
  color: var(--accent-2);
}

.partner-card__text {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.partner-card__site {
  margin: 0;
  font-size: 0.88rem;
}

.partner-card__site a {
  color: var(--accent-2);
}

.partners__foot {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.partners__foot a {
  color: var(--accent-2);
}

/* —— Kündigungskalender (§ 573c) —— */
.kk-page .page-head p {
  max-width: none;
}

.kk-tools {
  margin-top: 0.25rem;
}

.kk-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 920px) {
  .kk-grid {
    grid-template-columns: 1.12fr 0.88fr;
    align-items: start;
  }
}

.kk-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.kk-card__title {
  margin: 0;
  padding: 1rem 1.35rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  color: var(--accent);
  border-bottom: 1px solid var(--line);
}

.kk-card__body {
  padding: 1.35rem 1.35rem 1.25rem;
}

.kk-year-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.kk-year-bar label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.kk-year-bar select {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(18, 21, 28, 0.04);
}

table.kk-cal {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.kk-cal th,
table.kk-cal td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

table.kk-cal th {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: rgba(251, 250, 247, 0.9);
}

table.kk-cal tbody tr:hover {
  background: rgba(240, 235, 227, 0.65);
}

table.kk-cal td:last-child {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.kk-calc-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kk-calc-form label {
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.kk-calc-form input[type="date"] {
  width: 100%;
  max-width: 300px;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-size: 1rem;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(18, 21, 28, 0.04);
}

.kk-frist-result {
  margin-top: 0.35rem;
  min-height: 0;
}

.kk-result-box {
  margin-top: 0.65rem;
  padding: 1.05rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(30, 58, 95, 0.06);
  border: 1px solid rgba(30, 58, 95, 0.2);
}

.kk-result-box__label {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.kk-result-box__date {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.kk-result-box__sub {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.kk-error-box {
  margin-top: 0.65rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: #ffebee;
  border: 1px solid #ef9a9a;
  color: #b71c1c;
  font-size: 0.92rem;
}

.kk-footnote {
  margin-top: 1.75rem;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.kk-footnote p {
  margin: 0 0 0.65rem;
}

.kk-footnote p:last-child {
  margin-bottom: 0;
}

.kk-footnote strong {
  color: var(--ink);
  font-weight: 600;
}

.kk-legal-notice {
  margin: 0.75rem 0 0 !important;
  padding: 1rem 1.15rem 1rem 1.25rem;
  background: rgba(30, 58, 95, 0.06);
  border: 1px solid rgba(30, 58, 95, 0.18);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.kk-legal-notice strong {
  color: var(--accent);
}

.kk-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Footer —— */
.foot {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.foot__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.foot__brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.logo--foot {
  font-size: 1rem;
  gap: 0.5rem;
}

.logo--foot .logo__img--brand {
  height: 2rem;
  max-width: min(130px, 46vw);
}

.foot__tag {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

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

.foot__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
}

.foot__links a:hover {
  color: var(--accent);
}

/* —— Motion —— */
.rise {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.rise.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* —— Gebiet (Schäl Sick, Rhein-Sieg) —— */
.hero--gebiet .hero--gebiet__shell {
  grid-template-columns: 1fr;
}

.hero--gebiet .hero__lead {
  max-width: none;
}

.gebiet-page .section__head {
  max-width: none;
}

.hero__kolsch {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-style: italic;
  font-family: var(--display);
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.gebiet-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin: -0.5rem 0 2.25rem;
}

.gebiet-pills span {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(30, 58, 95, 0.07);
  border: 1px solid rgba(30, 58, 95, 0.14);
  border-radius: 999px;
}

.gebiet-grid {
  margin-bottom: 2rem;
}

.gebiet-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0;
  padding-bottom: 0.5rem;
}

.gebiet-cta--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 0;
  padding: 0;
  border-top: none;
}

.gebiet-page--footer-cta {
  padding-top: 0;
  padding-bottom: clamp(3rem, 7vw, 4.5rem);
}

.gebiet-cta__lead {
  margin: 0 0 1.15rem;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink);
}

/* —— Vermietung —— */
.vermietung-page .page-head p {
  max-width: none;
}

.vermietung-page .page-head h1 {
  max-width: none;
}

.vermietung-page .vermietung-personal .prose {
  max-width: none;
}

.vermietung-cta--center {
  justify-content: center;
  width: 100%;
  text-align: center;
}

.vermietung-slogan {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  font-style: italic;
  font-family: var(--display);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.vermietung-personal.section--block {
  margin: 2rem 0 2.5rem;
  padding: 1.75rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.vermietung-personal__split {
  margin-top: 0;
}

.vermietung-personal h2 {
  margin-top: 0;
}

.vermietung-grid {
  margin-bottom: 2rem;
}

.vermietung-grid .prose {
  max-width: none;
}

.vermietung-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0 0 2rem;
}

.partner-card__site--muted {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.partner-card__site--muted a {
  color: var(--accent-2);
}
