/* CAREDOG.DE — Landingpage Styles */

:root {
  --green: #1D6B54;
  --green-dark: #144d3c;
  --green-light: #e8f4f0;
  --yellow: #F5C421;
  --black: #1A1A1A;
  --grey: #6b7280;
  --light: #f9fafb;
  --white: #ffffff;
  --border: #d1d5db;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(29, 107, 84, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

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

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.top-anchor {
  position: absolute;
  top: 0;
}

/* ── HEADER ────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  transition:
    padding       0.5s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow    0.5s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    background    0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Compact-Modus: schmaler, abgerundete untere Ecken, leichter Schatten */
header.compact {
  padding: 0.4rem 0;
  border-radius: 0 0 20px 20px;
  border-bottom-color: transparent;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

header.compact .header-logo img {
  height: 38px;
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

header.compact .nav-link {
  font-size: 0.82rem;
  padding: 0.28rem 0.65rem;
}

header.compact .lang-switch {
  border-radius: 20px;
}

header.compact .lang-switch a {
  padding: 0.22rem 0.65rem;
  font-size: 0.8rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* ── MAIN NAVIGATION ───────────────────────────── */

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--grey);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green);
  background: var(--green-light);
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Burger (mobile) */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Breakpoint */
@media (max-width: 820px) {
  .nav-burger { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem 1rem;
    gap: 0.15rem;
    z-index: 99;
  }

  .main-nav.open { display: flex; }

  .nav-link {
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
  }
}

.header-logo img {
  height: 56px;
  width: auto;
  display: block;
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Haus-Icon Nav-Link */
.nav-home {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.6rem;
  color: var(--grey);
}

.nav-home:hover,
.nav-home.active {
  color: var(--green);
  background: var(--green-light);
  text-decoration: none;
}


/* ── LANGUAGE SWITCHER ─────────────────────────── */

.lang-switch {
  display: flex;
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang-switch a {
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  transition: background 0.2s, color 0.2s;
}

.lang-switch a:hover {
  background: var(--green-light);
  text-decoration: none;
}

.lang-switch a.active {
  background: var(--green);
  color: var(--white);
}

/* ── HERO: volle Breite ────────────────────────── */

.hero {
  position: relative;
  padding: 7rem 0 6.5rem;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -80px 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  will-change: transform;
  z-index: 0;
}

/* Dunkel-grüner Overlay für Lesbarkeit */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 77, 60, 0.62) 0%,
    rgba(20, 77, 60, 0.45) 60%,
    rgba(20, 77, 60, 0.65) 100%
  );
}

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

.hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hero .hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  max-width: 680px;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

/* ── BUTTONS ───────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
  text-decoration: none;
}

/* ── ABOUT: 50/50 Bild links, Text rechts ──────── */

.about {
  background: var(--white);
  padding: 7rem 0;
}

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

.about-image {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  perspective: 800px;
}

.about-image img {
  min-height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  transition: transform 0.15s ease-out;
  will-change: transform;
  transform-style: preserve-3d;
  cursor: pointer;
}

/* Caption-Overlay auf dem About-Bild */
.about-figure {
  position: relative;
  display: inline-block;
  width: 85%;
  margin: 0;
  transition: transform 0.15s ease-out;
  will-change: transform;
  transform-style: preserve-3d;
}

.about-figure img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.about-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.65rem 1rem 0.75rem;
  background: linear-gradient(to top, rgba(20,77,60,0.82) 0%, rgba(20,77,60,0) 100%);
  color: rgba(255,255,255,0.93);
  font-size: 0.8rem;
  font-weight: 500;
  font-style: italic;
  border-radius: 0 0 12px 12px;
  letter-spacing: 0.01em;
}

.about-text h2 {
  color: var(--green-dark);
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--grey);
  font-size: 1.05rem;
}

.powered-inline {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--grey);
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.powered-inline a {
  color: var(--green);
  font-weight: 600;
}

/* ── WAITLIST ──────────────────────────────────── */

.waitlist {
  background: var(--green-dark);
  padding: 4.5rem 0;
}

.waitlist-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.waitlist-text h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.waitlist-text p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
}

.waitlist-form-wrap .alert {
  margin-bottom: 0;
}

.wl-input-group {
  display: flex;
  gap: 0.75rem;
}

.wl-input-group input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.wl-input-group input[type="email"]::placeholder {
  color: rgba(255,255,255,0.4);
}

.wl-input-group input[type="email"]:focus {
  border-color: var(--yellow);
  background: rgba(255,255,255,0.15);
}

.wl-input-group .btn-primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
  white-space: nowrap;
  flex-shrink: 0;
}

.wl-input-group .btn-primary:hover {
  background: #e0b31a;
  border-color: #e0b31a;
  color: var(--black);
}

.wl-hint {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ── CONTACT ───────────────────────────────────── */

.contact {
  background: var(--light);
  padding: 7rem 0 8rem;
}

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

.contact-info h2 {
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--grey);
  font-size: 1.05rem;
}

.contact-address {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.75;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-address strong {
  color: var(--black);
  font-weight: 600;
}

.contact-address a {
  color: var(--green);
  font-weight: 500;
}

.contact-fax {
  color: var(--grey);
  font-size: 0.9rem;
}


/* ── FORM ──────────────────────────────────────── */

.contact-form {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

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

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

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

.form-group label .required {
  color: var(--green);
  margin-left: 2px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29,107,84,0.1);
}

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

/* Honeypot – für Bots unsichtbar */
.hp-field {
  position: absolute;
  left: -9999px;
  visibility: hidden;
  tab-index: -1;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--green-light);
  border-radius: var(--radius);
  border: 1.5px solid rgba(29,107,84,0.2);
  margin-bottom: 1.25rem;
}

.captcha-box label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
}

.captcha-box input {
  width: 70px;
  text-align: center;
  padding: 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}

.captcha-box input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29,107,84,0.1);
}

.form-submit {
  width: 100%;
  justify-content: center;
}

/* ── ALERTS ────────────────────────────────────── */

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1.5px solid #6ee7b7;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1.5px solid #fca5a5;
}

/* ── FOOTER ────────────────────────────────────── */

footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0;
  font-size: 0.9rem;
}

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

footer a {
  color: rgba(255,255,255,0.85);
}

footer a:hover { color: var(--yellow); }

.footer-logo img {
  height: 70px;
  width: auto;
}

/* ── FOOTER LINKS ──────────────────────────────── */

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.footer-link-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  padding: 0;
  transition: color 0.2s;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link-btn:hover {
  color: var(--yellow);
}

/* ── MODALS ────────────────────────────────────── */

.legal-modal {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 720px;
  width: calc(100% - 2rem);
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  /* Zentrierung */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.legal-modal::backdrop {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
}

.modal-inner {
  padding: 2.5rem;
  overflow-y: auto;
  max-height: 85vh;
  position: relative;
}

.modal-inner h2 {
  font-size: 1.6rem;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
  padding-right: 2.5rem;
}

.modal-inner h3 {
  font-size: 1.05rem;
  color: var(--black);
  margin: 1.5rem 0 0.5rem;
  font-weight: 700;
}

.modal-inner h4 {
  font-size: 0.95rem;
  color: var(--black);
  margin: 1rem 0 0.35rem;
  font-weight: 600;
}

.modal-inner p {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 0;
}

.modal-inner a {
  color: var(--green);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--green-light);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.modal-close:hover {
  background: var(--green);
  color: var(--white);
}

.modal-updated {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #9ca3af;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* ── COOKIE CONSENT ────────────────────────────── */

.consent-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: calc(100% - 3rem);
  max-width: 780px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  border: 1px solid var(--border);
  animation: consent-slide-up 0.4s ease-out;
}

@keyframes consent-slide-up {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.consent-inner {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  padding: 1.5rem 2rem;
}

.consent-text {
  flex: 1;
}

.consent-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.consent-text p {
  font-size: 0.85rem;
  color: var(--grey);
  line-height: 1.6;
  margin-bottom: 0.35rem;
}

.consent-legal {
  font-size: 0.8rem !important;
  color: #9ca3af !important;
}

.consent-link {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: var(--green);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: inherit;
}

.consent-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
}

.consent-btn {
  white-space: nowrap;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
}

/* ── TO-TOP BUTTON ─────────────────────────────── */

.to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(29,107,84,0.35);
  transition: background 0.2s, opacity 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(12px);
}

.to-top-btn:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}

.to-top-btn:hover {
  background: var(--green-dark);
}

/* ── RESPONSIVE ────────────────────────────────── */

@media (max-width: 900px) {
  .about-grid,
  .contact-inner,
  .waitlist-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image {
    order: -1;
  }

  .about-image img {
    width: 100%;
    min-height: 0;
    max-height: 380px;
  }

  .contact-info {
    text-align: center;
  }

  .contact-detail {
    align-items: center;
  }
}

@media (max-width: 640px) {
  /* Sektions-Abstände */
  .hero      { padding: 4rem 0 3.5rem; }
  .about     { padding: 4rem 0; }
  .waitlist  { padding: 3rem 0; }
  .contact   { padding: 4rem 0 4.5rem; }

  /* Hero */
  .hero h1   { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .hero .hero-lead { font-size: 1rem; }

  /* Waitlist */
  .waitlist-inner { gap: 1.75rem; }
  .wl-input-group { flex-direction: column; }
  .wl-input-group .btn-primary { width: 100%; justify-content: center; }

  /* Kontaktformular */
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem 1.25rem; }
  .captcha-box { flex-wrap: wrap; gap: 0.5rem; }

  /* Footer */
  .footer-inner  { flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; }
  .footer-links  { align-items: center; }

  /* Consent Banner */
  .consent-inner  { flex-direction: column; gap: 1.25rem; padding: 1.25rem; }
  .consent-actions { flex-direction: row; width: 100%; }
  .consent-btn    { flex: 1; text-align: center; justify-content: center; }

  /* Modal */
  .modal-inner { padding: 1.5rem 1.25rem; }
  .modal-inner h2 { font-size: 1.3rem; }

  /* toTop auf Mobile etwas kleiner, mehr Platz für Finger */
  .to-top-btn { bottom: 1.25rem; right: 1.25rem; width: 42px; height: 42px; }
}

@media (max-width: 400px) {
  .container { padding: 0 1rem; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
}
