/* ============================================================
   casabrisa.de — light, warm, trustworthy.
   Same petrol/cream identity as the logo. Audience is property
   owners, not tech-forward consumers — calm over flashy.
   ============================================================ */

/* Self-hosted (variable font, one file covers weights 400-800) —
   not loaded from Google's CDN, avoids sending visitor IPs to Google. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F3ECDD;
  --bg-raised: #FFFFFF;
  --text: #1E2A28;
  --text-soft: #5B6664;
  --accent: #0E5C68;
  --accent-strong: #0A454E;
  --accent-soft: #DCE8E6;
  --line: #E2D9C4;
  --shadow: rgba(30, 42, 40, 0.08);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B211F;
    --bg-raised: #232A28;
    --text: #EDE8DD;
    --text-soft: #A6ADA8;
    --accent: #4FA8B0;
    --accent-strong: #6FC2C9;
    --accent-soft: #223432;
    --line: #313834;
    --shadow: rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1B211F; --bg-raised: #232A28; --text: #EDE8DD; --text-soft: #A6ADA8;
  --accent: #4FA8B0; --accent-strong: #6FC2C9; --accent-soft: #223432; --line: #313834;
  --shadow: rgba(0, 0, 0, 0.4); color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F3ECDD; --bg-raised: #FFFFFF; --text: #1E2A28; --text-soft: #5B6664;
  --accent: #0E5C68; --accent-strong: #0A454E; --accent-soft: #DCE8E6; --line: #E2D9C4;
  --shadow: rgba(30, 42, 40, 0.08); color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.theme-toggle {
  background: var(--bg-raised); border: 1px solid var(--line); color: var(--text-soft);
  font-family: ui-monospace, monospace; font-size: 0.72rem;
  padding: 7px 12px; border-radius: 20px; cursor: pointer;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
header.site {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.site-nav {
  max-width: 1040px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; }
.brand img { width: 30px; height: 30px; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.nav-cta {
  font-size: 0.85rem; font-weight: 600;
  background: var(--accent); color: #fff;
  border: none; border-radius: 8px; padding: 10px 16px; cursor: pointer;
  text-decoration: none;
}
.nav-cta:hover { background: var(--accent-strong); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 140px 24px 100px;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  background-image:
    linear-gradient(180deg, rgba(14,20,19,0.15) 0%, rgba(14,20,19,0.05) 35%, rgba(14,20,19,0.78) 100%),
    url("assets/hero.jpg");
  background-size: cover;
  background-position: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.eyebrow {
  font-family: ui-monospace, monospace; font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); display: inline-block; margin-bottom: 18px;
}
.hero .eyebrow { color: #9FD6D2; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.15; margin-bottom: 20px; color: #fff; }
.hero .lede { font-size: 1.15rem; color: rgba(255,255,255,0.88); max-width: 56ch; margin: 0 auto 32px; }
@media (prefers-color-scheme: dark) {
  .hero { background-image:
    linear-gradient(180deg, rgba(6,10,9,0.35) 0%, rgba(6,10,9,0.2) 35%, rgba(6,10,9,0.88) 100%),
    url("assets/hero.jpg"); }
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  font-size: 1rem; font-weight: 700; background: var(--accent); color: #fff;
  border: none; border-radius: 10px; padding: 14px 24px; cursor: pointer; text-decoration: none;
}
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost {
  font-size: 1rem; font-weight: 600; background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 24px; cursor: pointer; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.1); }

/* ---------- Section shell ---------- */
section.block { padding: 64px 24px; }
section.block.raised { background: var(--bg-raised); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow { color: var(--accent); }
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-top: 8px; }
.section-head p { color: var(--text-soft); margin-top: 12px; }

/* ---------- Leistungen: asymmetric, one anchor card + three smaller ---------- */
.cards {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 20px; max-width: 960px; margin: 0 auto;
}
@media (max-width: 780px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 1px 2px var(--shadow);
}
.card.anchor {
  grid-column: span 6;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-strong);
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
@media (max-width: 780px) {
  .card.anchor { grid-column: span 1; flex-direction: column; text-align: center; }
  .card.anchor > div { align-self: stretch; min-width: 0; }
}
.card.anchor .icon { width: 52px; height: 52px; flex-shrink: 0; }
.card.anchor .icon svg { width: 100%; height: 100%; color: #fff; }
.card.anchor h3 { font-size: 1.3rem; color: #fff; }
.card.anchor p { color: rgba(255,255,255,0.82); }
.cards .card:not(.anchor) { grid-column: span 2; }
@media (max-width: 780px) { .cards .card:not(.anchor) { grid-column: span 1; } }
.card .icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); border-radius: 10px;
}
.card .icon svg { width: 22px; height: 22px; color: var(--accent); }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--text-soft); font-size: 0.94rem; margin: 0; }

/* ---------- Steps: connected by a through-line, not isolated chips ---------- */
.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 900px; margin: 0 auto;
}
.steps::before {
  content: "";
  position: absolute;
  top: 22px; left: 12%; right: 12%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}
.step { text-align: center; position: relative; z-index: 1; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin: 0 auto 16px; font-family: ui-monospace, monospace;
  border: 3px solid var(--bg);
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 0.92rem; margin: 0; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 780px; margin: 0 auto; }
.price-card {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 16px;
  padding: 32px; display: flex; flex-direction: column; gap: 12px;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 8px 24px var(--shadow); }
.price-card .plan-name { font-family: ui-monospace, monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.price-card .plan-price { font-size: 2.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.price-card .plan-price span { font-size: 0.95rem; font-weight: 400; color: var(--text-soft); }
.price-card ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-soft); font-size: 0.92rem; }
.price-card li { margin-bottom: 6px; }

/* ---------- Contact form ---------- */
.contact-box {
  max-width: 560px; margin: 0 auto; background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: 18px; padding: 36px;
}
.contact-box form { display: flex; flex-direction: column; gap: 14px; }
.contact-box label { font-size: 0.88rem; color: var(--text-soft); }
.contact-box input, .contact-box textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--text); font-family: inherit; font-size: 0.95rem;
}
.contact-box input:focus, .contact-box textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-box textarea { resize: vertical; min-height: 100px; }
.contact-box button {
  font-family: inherit; font-size: 1rem; font-weight: 700; background: var(--accent); color: #fff;
  border: none; border-radius: 8px; padding: 14px 20px; cursor: pointer; margin-top: 4px;
}
.contact-box button:hover { background: var(--accent-strong); }
#contactStatus { font-size: 0.85rem; color: var(--text-soft); text-align: center; }

/* ---------- Footer ---------- */
footer { padding: 40px 24px 56px; border-top: 1px solid var(--line); }
.footer-inner { max-width: 1040px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
footer .meta { font-family: ui-monospace, monospace; font-size: 0.75rem; color: var(--text-soft); }
footer a { color: var(--text-soft); text-decoration: none; font-size: 0.88rem; }
footer a:hover { color: var(--accent); }

/* ---------- Mobile tightening ---------- */
@media (max-width: 480px) {
  .hero { padding: 96px 20px 56px; min-height: 480px; }
  .hero .lede { font-size: 1.02rem; }
  section.block { padding: 48px 20px; }
  .contact-box { padding: 24px; }
  .price-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
