/* ============================================================
   Augenarztpraxis Dr. Leusmann — styles.css
   Design theme: Buchsbaum
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:           #faf9f4;
  --surface:      #f3f1e8;
  --tint-green:   #eaefd9;
  --tint-sand:    #f1e8d4;
  --green-soft:   #c8d6a6;
  --green-mid:    #8aa566;
  --green-deep:   #3d4d2a;
  --green-ink:    #2a341d;
  --sand:         #d9c19e;
  --sand-deep:    #a98a5a;
  --text:         #0f1310;
  --text-muted:   #3d4639;
  --line:         #e0ddd1;
  --line-soft:    #ece9dd;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body:    "Manrope", ui-sans-serif, system-ui, sans-serif;
  --gutter:       clamp(16px, 5vw, 48px);
  --radius:       6px;
}

/* ── Reset + Base ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

address {
  font-style: normal;
}

/* ── Page Wrapper ───────────────────────────────────────────── */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ─────────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(250, 249, 244, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--green-ink);
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-ink);
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.9em;
  font-weight: 400;
  color: var(--text-muted);
}

/* ── Main ────────────────────────────────────────────────────── */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 60px var(--gutter) 40px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--green-ink);
  margin: 12px 0 20px;
  line-height: 1.15;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

/* ── Contact Card ────────────────────────────────────────────── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 16px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  box-sizing: border-box;
}

.contact-item {
  padding: 16px 0;
  text-align: center;
}

.contact-item:not(:last-child) {
  border-bottom: 1px solid var(--line-soft);
}

.contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-value {
  font-size: 1rem;
}

.contact-value a {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: none;
}

.contact-value a:hover {
  color: var(--green-ink);
}

.btn-phone {
  display: inline-block;
  background: var(--green-deep);
  color: var(--bg) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease;
}

.btn-phone:hover {
  background: var(--green-ink) !important;
}

/* Mobile: edge-to-edge, no rounded corners */
@media (max-width: 639px) {
  .contact-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 16px 0;
  }

  .contact-item {
    padding: 16px 24px;
  }
}

/* Desktop: 3 columns */
@media (min-width: 640px) {
  .contact-card {
    grid-template-columns: repeat(3, 1fr);
    padding: 32px 24px;
  }

  .contact-item {
    padding: 16px 20px;
  }

  .contact-item:not(:last-child) {
    border-bottom: none;
    border-right: 1px solid var(--line-soft);
  }
}

/* ── Form Section ────────────────────────────────────────────── */
.form-section {
  max-width: 560px;
  margin: 0 auto 64px;
  padding: 0 var(--gutter);
  width: 100%;
}

.form-section h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--green-ink);
  margin-bottom: 24px;
}

.form-field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--green-mid);
  outline: none;
  box-shadow: 0 0 0 3px rgba(138, 165, 102, 0.15);
}

.form-field textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

.privacy-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.privacy-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--green-deep);
  cursor: pointer;
}

.privacy-row a {
  color: var(--green-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-row a:hover {
  color: var(--green-ink);
}

.btn-submit {
  background: var(--green-deep);
  color: var(--bg);
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.18s ease;
}

.btn-submit:hover {
  background: var(--green-ink);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  margin-top: 12px;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-message.is-success {
  color: var(--green-deep);
}

.form-message.is-error {
  color: #b91c1c;
}

/* Honeypot — visually hidden, not display:none so bots still see it */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 24px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--green-deep);
}

/* ── Cookie Consent Overrides ────────────────────────────────── */
.cc-window {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  font-family: var(--font-body) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  border-top: 1px solid var(--line) !important;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06) !important;
}

.cc-message {
  color: var(--text-muted) !important;
}

.cc-btn.cc-dismiss {
  background: var(--green-deep) !important;
  color: var(--bg) !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
}

.cc-btn.cc-dismiss:hover {
  background: var(--green-ink) !important;
}

.cc-link {
  color: var(--green-deep) !important;
}

.cc-link:hover {
  color: var(--green-ink) !important;
}
