/* ===========================================================================
   arilla.ch — Stylesheet
   Ein einziges CSS für die ganze Seite. Farben und Abstände als Custom
   Properties, damit Anpassungen an einer Stelle passieren.
   =========================================================================== */

:root {
  --blue:        #1a85c5;
  --blue-dark:   #12648f;
  --blue-light:  #e8f2f9;
  --ink:         #23282d;
  --ink-soft:    #2d2d2d;
  --text:        #5c6166;
  --muted:       #8a9096;
  --line:        #e4e8eb;
  --bg:          #ffffff;
  --bg-alt:      #f6f9fb;
  --white:       #ffffff;

  --wrap:        1180px;
  --gap:         clamp(1.5rem, 4vw, 3rem);
  --radius:      6px;
  --shadow:      0 2px 14px rgba(35, 40, 45, .08);

  --ff-head:     "Roboto", "Helvetica Neue", Arial, sans-serif;
  --ff-body:     "Open Sans", "Segoe UI", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p  { margin: 0 0 1.1em; }

a { color: var(--blue); text-decoration: none; }
a:hover, a:focus-visible { color: var(--blue-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue); color: #fff; padding: .7rem 1.2rem;
}
.skip:focus { left: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2.5rem, 780px); }
.center { text-align: center; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .85rem 1.9rem;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover, .btn:focus-visible { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; text-decoration: none; }
.btn-lg { padding: 1rem 2.4rem; font-size: 1rem; }
.btn-outline { background: transparent; color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--muted); color: var(--ink); }

/* --- Kopfzeile ------------------------------------------------------------ */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.logo img { width: 132px; height: auto; }

.site-nav ul { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-family: var(--ff-head); font-size: .9rem; color: var(--ink);
  padding: .4rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); text-decoration: none; }
.nav-login a {
  border: 2px solid var(--blue); border-radius: var(--radius);
  padding: .45rem 1.1rem; color: var(--blue);
}
.nav-login a:hover { background: var(--blue); color: #fff; border-bottom-color: var(--blue); }
.nav-lang { display: flex; gap: .45rem; padding-left: .6rem; border-left: 1px solid var(--line); }
.nav-lang a { font-size: .78rem; color: var(--muted); letter-spacing: .05em; }
.nav-lang a.is-active { color: var(--ink); font-weight: 700; }

.navtoggle, .burger { display: none; }

@media (max-width: 980px) {
  .burger {
    display: block; width: 40px; height: 40px; cursor: pointer; position: relative;
  }
  .burger span, .burger span::before, .burger span::after {
    content: ""; position: absolute; left: 8px; width: 24px; height: 2px;
    background: var(--ink); transition: transform .2s ease;
  }
  .burger span { top: 19px; }
  .burger span::before { top: -7px; }
  .burger span::after  { top: 7px; }

  .site-nav {
    position: absolute; inset: 68px 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow);
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: .85rem 0; border-bottom: 0; }
  .nav-login a { display: inline-block; margin: .8rem 0; }
  .nav-lang { border-left: 0; padding: .8rem 0 0; }
  .navtoggle:checked ~ .site-nav { display: block; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(150deg, rgba(18,60,90,.86), rgba(26,133,197,.72)),
              url("/assets/img/image-4-copy.svg") center/cover no-repeat;
}
.hero-inner { padding: clamp(4rem, 12vw, 8.5rem) 0; max-width: 46rem; }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero-sub { font-size: 1.05rem; font-weight: 600; margin-bottom: 2rem; }

/* --- Abschnitte ----------------------------------------------------------- */
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-alt, .section-intro { background: var(--bg-alt); }
.section-head { padding-bottom: 0; }
.section-title { text-align: center; max-width: 26ch; margin-inline: auto; margin-bottom: 2.5rem; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }

/* Karten */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--gap); list-style: none; margin: 0 0 2.5rem; padding: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem; text-align: center; box-shadow: var(--shadow); }
.card-icon { width: 56px; height: 56px; margin: 0 auto 1.2rem; filter: invert(38%) sepia(72%) saturate(700%) hue-rotate(170deg); }
.card h3 { font-size: 1.15rem; }
.card p { margin: 0; font-size: .95rem; }

/* Claim */
.section-claim { background: linear-gradient(208deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; }
.claim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.section-claim h2 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.5rem); }
.section-claim p { font-size: 1.15rem; }
.section-claim strong { color: #fff; }
@media (max-width: 860px) { .claim-grid { grid-template-columns: 1fr; } }

/* Zwei-Spalten-Abschnitte */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.split-reverse .split-figure { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-figure { order: 0; }
}
.split-figure { margin: 0; }
.split-text h3 { color: var(--blue); font-size: 1.25rem; margin-top: -.3em; }

.checks { list-style: none; margin: 0 0 1.8rem; padding: 0; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 1.05rem; height: .55rem; border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}

/* Kundenstimmen */
.voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); list-style: none; margin: 0; padding: 0; }
.voice { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem; box-shadow: var(--shadow); }
.voice img { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 1rem; }
.voice blockquote { margin: 0 0 .8rem; }
.voice blockquote p { font-style: italic; margin: 0; }
.voice cite { font-style: normal; font-size: .88rem; color: var(--muted); }

.section-cta { background: var(--blue-light); }

/* --- Kontaktseite --------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gap); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.2rem; }
.field label { display: block; font-family: var(--ff-head); font-size: .92rem; color: var(--ink); margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(26,133,197,.18); }
.field textarea { resize: vertical; min-height: 8rem; }
.field .req { color: var(--blue); }
.has-error input, .has-error textarea { border-color: #c0392b; }
.error { display: block; color: #c0392b; font-size: .85rem; margin-top: .3rem; }

.field-check label { display: flex; gap: .6rem; align-items: flex-start; font-family: var(--ff-body); font-size: .95rem; color: var(--text); }
.field-check input { width: auto; margin-top: .28rem; }

/* Honeypot: für Menschen unsichtbar, für Bots ausfüllbar. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid; }
.notice-ok  { background: #edf7ed; border-color: #b7dcb7; color: #24632a; }
.notice-err { background: #fdeceb; border-color: #f2b7b2; color: #a3271c; }

.contact-side { background: var(--bg-alt); padding: 1.8rem; border-radius: var(--radius); }
.map-placeholder {
  margin-top: 1.5rem; background: #e9eef1; border: 1px dashed var(--muted);
  border-radius: var(--radius); padding: 1.4rem; text-align: center; font-size: .9rem;
}
.map-placeholder iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }

/* --- Fusszeile ------------------------------------------------------------ */
.site-foot { background: var(--ink); color: #b9c0c6; padding: clamp(2.5rem, 6vw, 4rem) 0 0; font-size: .93rem; }
.site-foot a { color: #dfe4e8; }
.site-foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--gap); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav li { margin-bottom: .5rem; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding: 1.2rem 0; font-size: .85rem; }
.foot-legal p { margin: 0; }

/* --- Einwilligungsbanner -------------------------------------------------- */
.consent {
  position: fixed; inset: auto 1rem 1rem 1rem; z-index: 60;
  max-width: 34rem; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 6px 30px rgba(35,40,45,.18); padding: 1.3rem 1.4rem;
  font-size: .92rem;
}
.consent p { margin: 0 0 1rem; }
.consent-btns { display: flex; gap: .7rem; flex-wrap: wrap; }
.consent .btn { font-size: .8rem; padding: .6rem 1.2rem; }

@media print {
  .site-head, .site-foot, .consent, .btn { display: none !important; }
}

/* Logo in der Fusszeile: dieselbe SVG-Datei, per Filter aufgehellt —
   spart eine zweite Bilddatei, die separat gepflegt werden müsste. */
.foot-brand img { filter: brightness(0) invert(1); opacity: .92; }

/* --- Zusätze für Unterseiten ---------------------------------------------- */
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card-left { text-align: left; }
.card-left .card-icon { margin-left: 0; }
.card-left h2 { font-size: 1.35rem; margin-bottom: .2em; }
.card-left h3 { font-size: 1rem; color: var(--blue); margin-bottom: .8em; }
.cards-on-blue .card { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); box-shadow: none; color: #eaf3f9; }
.cards-on-blue .card h3 { color: #fff; }
.cards-on-blue .card-icon { filter: none; }
.btn-invert { background: #fff; border-color: #fff; color: var(--blue); }
.btn-invert:hover { background: var(--blue-light); border-color: var(--blue-light); color: var(--blue-dark); }
.btn-sm { padding: .5rem 1rem; font-size: .78rem; }
.block-icon { width: 48px; height: 48px; margin-bottom: 1rem; filter: invert(38%) sepia(72%) saturate(700%) hue-rotate(170deg); }

/* Vergleichstabelle */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.matrix { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .93rem; }
.matrix th, .matrix td { border-bottom: 1px solid var(--line); padding: .8rem 1rem; text-align: left; vertical-align: middle; }
.matrix thead th { border-bottom: 2px solid var(--line); text-align: center; vertical-align: top; padding: 1.5rem 1rem; }
.matrix thead th:first-child { border-bottom-color: transparent; }
.matrix tbody th { font-weight: 400; color: var(--ink); font-family: var(--ff-body); }
.matrix td { text-align: center; width: 15%; font-size: 1.15rem; }
.matrix td.yes { color: var(--blue); }
.matrix td.no  { color: var(--muted); }
.matrix tbody tr:nth-child(odd) { background: var(--bg-alt); }
.plan-name  { display: block; font-family: var(--ff-head); font-size: 1.25rem; color: var(--ink); }
.plan-price { display: block; font-family: var(--ff-head); font-size: 1.5rem; color: var(--blue); margin: .3rem 0; }
.plan-desc  { display: block; font-size: .85rem; color: var(--text); margin-bottom: .9rem; font-weight: 400; }
.note { font-size: .88rem; color: var(--muted); margin-top: 1.5rem; }

/* Preisseite */
.terms { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; margin-bottom: 2.5rem; }
.terms-label { font-family: var(--ff-head); color: var(--ink); margin-right: .6rem; }
.term {
  font: inherit; font-size: .9rem; padding: .5rem 1.1rem; cursor: pointer;
  border: 1px solid var(--line); background: #fff; border-radius: 999px; color: var(--text);
}
.term:hover { border-color: var(--blue); color: var(--blue); }
.term.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); list-style: none; margin: 0; padding: 0; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem 1.6rem; text-align: center; }
.plan .plan-price { font-size: 2.6rem; line-height: 1.1; margin: 0 0 .2em; }
.plan .plan-price .cur { font-size: 1rem; color: var(--text); vertical-align: super; margin-right: .2rem; }
.plan h2 { font-size: 1.3rem; margin-bottom: .2em; }
.plan-features { list-style: none; margin: 1.4rem 0; padding: 0; text-align: left; }
.plan-features li { display: flex; align-items: center; gap: .7rem; padding: .45rem 0; font-size: .92rem; }
.plan-features li img { width: 28px; height: 28px; flex: none; }
.plan-features li.no { opacity: .32; }
.plan-features li.setup { display: block; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: .6rem; padding-top: .8rem; }
.link-detail { font-size: .88rem; }
.price-notes { margin-top: 2.5rem; text-align: center; font-size: .9rem; color: var(--text); }
.price-notes ul { list-style: none; padding: 0; margin: .6rem 0; }

/* Rechtstexte */
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.prose address { font-style: normal; margin-bottom: 1.5rem; }
.imprint { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; }
.imprint dt { font-family: var(--ff-head); color: var(--ink); }
.imprint dd { margin: 0; }

/* Umschalter auf der Preisseite */
.switches { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: center; margin-bottom: .8rem; }
.terms { margin-bottom: 0; }
.billing.is-disabled { opacity: .45; }
.billing .term[disabled] { cursor: not-allowed; }
.switch-hint { text-align: center; font-size: .85rem; color: var(--muted); margin-bottom: 2.5rem; }
.plan-price .surcharge {
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  vertical-align: super;
  margin-left: .25rem;
}
