:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
  background: #fff;
  --primary: #C46628;
  --primary-soft: #FFBC81;
  --text: #222;
  --muted: #6f6f6f;
  --surface: #fff9f3;
  --border: #e6dfd8;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.6;
  background: linear-gradient(180deg, #fff 0%, #fff9f7 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #a0521f;
  text-decoration: underline;
}

.contact-text {
  color: var(--primary);
  font-weight: 400;
}

.contact-text-black {
  color: #000;
  font-weight: 400;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 102, 40, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.brand span {
  display: block;
  white-space: nowrap;
}

.brand img.logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 999px;
  background: #fff;
  padding: 0.4rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.brand span {
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.language-selector {
  position: relative;
}

.language-toggle {
  border: 1px solid rgba(36, 68, 92, 0.16);
  background: #f8fafb;
  color: #24445c;
  padding: 0.55rem 0.8rem;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.language-toggle:hover {
  background: #eef4f8;
}

.language-options {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(36, 68, 92, 0.08);
  border-radius: 0.85rem;
  overflow: hidden;
  min-width: 6rem;
  flex-direction: column;
  z-index: 25;
}

.language-selector.open .language-options {
  display: flex;
}

.language-options .lang-btn {
  width: 100%;
  text-align: left;
  min-width: 0;
  border: none;
  border-bottom: 1px solid rgba(36, 68, 92, 0.08);
  border-radius: 0;
  padding: 0.7rem 0.9rem;
}

.language-options .lang-btn:last-child {
  border-bottom: none;
}

.lang-btn {
  min-width: 2.4rem;
  border: 1px solid rgba(36, 68, 92, 0.16);
  background: #f8fafb;
  color: #24445c;
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.lang-btn:hover,
.lang-btn.active {
  background: #24445c;
  color: #fff;
  border-color: #24445c;
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 2rem;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero-copy h1,
.page-header h1,
.split-section h2,
.cta-block h2 {
  font-size: clamp(2rem, 2.5vw, 3rem);
  margin: 0 0 1rem;
  line-height: 1.05;
}

.hero-copy p,
.page-header p,
.card p,
.about-card p {
  color: var(--muted);
  max-width: 42rem;
}

.card.card--health p {
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 18px 40px rgba(196, 102, 40, 0.18);
}

.whatsapp-link,
.button.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.whatsapp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.whatsapp-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: #25d366;
}

.button.whatsapp-link .whatsapp-icon svg {
  fill: #fff;
}

.button.secondary {
  background: rgba(255, 188, 129, 0.16);
  color: var(--primary);
}

.hero-image {
  display: grid;
  place-items: center;
}

.reveal,
.hero-copy,
.hero-card,
.features article,
.about-card,
.testimonial,
.cta-block,
.contact-info > div,
.legal-section > div,
.contact-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible,
.hero-copy.visible,
.hero-card.visible,
.features article.visible,
.about-card.visible,
.testimonial.visible,
.cta-block.visible,
.contact-info > div.visible,
.legal-section > div.visible,
.contact-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-card {
  transition: transform 0.9s ease, opacity 0.9s ease;
}

.hero-card.visible {
  transform: translateY(0);
}


.hero-card {
  width: 100%;
  min-height: 320px;
  border-radius: var(--radius);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), rgba(196, 102, 40, 0.18));
  box-shadow: 0 35px 80px rgba(196, 102, 40, 0.1);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 3rem auto;
}

.features article,
.card,
.about-card,
.contact-form-wrapper,
.legal-section > div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 2rem;
}

.card.card--bg,
.card.card--auto,
.card.card--health,
.card.card--rechtsschutz,
.card.card--haftpflicht,
.card.card--bausparer,
.card.card--darlehen,
.card.card--hauswohnen {
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 320px;
  border-color: rgba(255,255,255,0.12);
  overflow: hidden;
}

.card.card--bg {
  background-image: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.32)), url("aziz-acharki-U3C79SeHa7k-unsplash.jpg");
}

.card.card--auto {
  background-image: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.32)), url("shayan-izadi-37BACndHsiI-unsplash.jpg");
}

.card.card--health {
  background-image: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.32)), url("a-c-xbn8tgEG3-g-unsplash.jpg");
}

.card.card--hauswohnen {
  background-image: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.32)), url("microsoft-copilot-s_JJOnsIChs-unsplash.jpg");
}

.card.card--haftpflicht {
  background-image: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.32)), url("ivan-vranic-j9-2LIZ2_Rc-unsplash.jpg");
}

.card.card--bausparer {
  background-image: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.32)), url("andre-taissin-5OUMf1Mr5pU-unsplash.jpg");
}

.card.card--darlehen {
  background-image: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.32)), url("privatdarlehen.jpg");
}

.card.card--rechtsschutz {
  background-image: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.32)), url("planet-volumes-lhdYcdTwjdg-unsplash.jpg");
}

.card.card--bg::before,
.card.card--auto::before,
.card.card--health::before,
.card.card--rechtsschutz::before,
.card.card--haftpflicht::before,
.card.card--bausparer::before,
.card.card--darlehen::before,
.card.card--hauswohnen::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.28));
  pointer-events: none;
}

.card.card--bg h2,
.card.card--bg p,
.card.card--auto h2,
.card.card--auto p,
.card.card--health h2,
.card.card--health p,
.card.card--rechtsschutz h2,
.card.card--rechtsschutz p,
.card.card--haftpflicht h2,
.card.card--haftpflicht p,
.card.card--bausparer h2,
.card.card--bausparer p,
.card.card--darlehen h2,
.card.card--darlehen p,
.card.card--hauswohnen h2,
.card.card--hauswohnen p {
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.features article h2,
.card h2,
.about-card h3,
.legal-section h2 {
  margin-top: 0;
}

.about {
  margin: 4rem auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.language-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.language-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.flag {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  animation: float-flag 6s ease-in-out infinite;
}

.language-list li:nth-child(1) .flag { animation-delay: 0s; }
.language-list li:nth-child(2) .flag { animation-delay: 0.9s; }
.language-list li:nth-child(3) .flag { animation-delay: 1.8s; }
.language-list li:nth-child(4) .flag { animation-delay: 0.4s; }

.flag::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.flag-de {
  background: linear-gradient(180deg, #000 33%, #DD0000 33%, #DD0000 66%, #FFCE00 66%);
}

.flag-gb {
  background-color: #012169;
  background-image:
    linear-gradient(90deg, transparent 27%, #fff 27%, #fff 33%, transparent 33%),
    linear-gradient(0deg, transparent 27%, #fff 27%, #fff 33%, transparent 33%),
    linear-gradient(90deg, transparent 37.5%, #C8102E 37.5%, #C8102E 46%, transparent 46%),
    linear-gradient(0deg, transparent 37.5%, #C8102E 37.5%, #C8102E 46%, transparent 46%),
    linear-gradient(45deg, transparent 40%, #fff 40%, #fff 46%, transparent 46%),
    linear-gradient(135deg, transparent 40%, #fff 40%, #fff 46%, transparent 46%),
    linear-gradient(45deg, transparent 46%, #C8102E 46%, #C8102E 54%, transparent 54%),
    linear-gradient(135deg, transparent 46%, #C8102E 46%, #C8102E 54%, transparent 54%);
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

.flag-pl {
  background: linear-gradient(180deg, #fff 50%, #dc143c 50%);
}

.flag-it {
  background: linear-gradient(90deg, #009246 33%, #fff 33%, #fff 66%, #ce2b37 66%);
}

@keyframes float-flag {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-5px); }
  50% { transform: translateY(3px); }
  75% { transform: translateY(-4px); }
}

.about-card,
.card {
  border-radius: 2rem;
}

.card {
  min-height: 260px;
}

.testimonial {
  margin: 0 auto 4rem;
  padding: 3rem 2rem;
  background: linear-gradient(180deg, rgba(255, 188, 129, 0.16), rgba(255, 255, 255, 0.7));
  border-radius: 2.5rem;
}

.testimonial h2 {
  margin-bottom: 1rem;
}

.page-content {
  padding: 3rem 0 4rem;
}

.page-header {
  margin-bottom: 3rem;
}

.impressum .page-header {
  margin-bottom: 2rem;
}

.impressum .page-header p {
  margin: 0.8rem 0 0;
}

.impressum .page-header p + p {
  margin-top: 0.65rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card h2 {
  margin-bottom: 1rem;
}

.cta-block {
  padding: 2.5rem;
  border-radius: 2rem;
  background: var(--surface);
  text-align: center;
}

.cta-block p {
  margin: 0.75rem auto 1.5rem;
  max-width: 40rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: 1rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196, 102, 40, 0.1);
}

.contact-form textarea {
  resize: vertical;
}

.checkbox-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.form-note {
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-info {
  display: grid;
  gap: 1.5rem;
}

.contact-info h2 {
  margin-bottom: 0.75rem;
}

.site-footer {
  padding: 2rem 0 3rem;
  color: #5b503b;
  border-top: 3px solid var(--primary-soft);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-note {
  margin-top: 1.5rem;
  color: var(--muted);
}

.legal-section {
  display: grid;
  gap: 1.4rem;
}

.legal-section p,
.contact-section p,
.page-header p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-section h2 {
  color: var(--primary);
}

.contact-section {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255, 188, 129, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: 1rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .about,
  .split-section,
  .contact-grid,
  .features,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .site-nav.open {
    display: flex;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 2.5rem;
  }

  .hero-card {
    min-height: 220px;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .button {
    width: 100%;
  }
}
