/*
Theme Name: Mastservice.ch
Template: hello-elementor
Description: Child-Theme fuer mastservice.ch. Design-System des Prototyps vom 3.9.2026, Kopf/Fuss-Templates, SEO-Kopf, Formularversand.
Version: 1.0.1
Author: ALUART AG
Text Domain: mastservice
*/
/* =========================================================================
   MASTSERVICE.CH — Prototyp der neuen Website (Stand 3.9.2026)
   Marke: das bestehende Logo-Blau und das Dunkelblau der heutigen
   Überschriften bleiben. Signalrot nur für den Sturmschaden-Kontakt.
   Schriften: Barlow (Titel, technisch-sachlich) und Source Sans 3 (Text).
   In WordPress übernimmt Elementor Menü und Raster; die Werte hier sind
   die Vorgabe für die Elementor-Site-Settings.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@500;600;700&family=Source+Sans+3:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --blau:        #2F5FD9;   /* Logo-Blau */
  --blau-dunkel: #1F46B0;
  --blau-hell:   #E9EFFB;
  --navy:        #172046;   /* Überschriften, wie heute «Mastservice schweizweit» */
  --text:        #2B3247;
  --grau:        #646B80;
  --linie:       #D9DEE8;
  --flaeche:     #F3F5F9;
  --weiss:       #FFFFFF;
  --rot:         #C8352B;   /* Sturmschaden / Notfall */
  --rot-hell:    #FBEAE8;
  --gruen:       #2E7D4F;

  --titel: 'Barlow', 'Arial Narrow', Arial, sans-serif;
  --schrift: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;

  --breite: 1180px;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 .45em;
  font-family: var(--titel);
  color: var(--navy);
  line-height: 1.12;
  text-wrap: balance;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 700; }
h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 20px; line-height: 1.55; color: var(--navy); }
.klein { font-size: 15px; color: var(--grau); }

a { color: var(--blau); text-decoration: none; }
a:hover { color: var(--blau-dunkel); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; }

img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--linie); margin: 2.5rem 0; }
[hidden] { display: none !important; }

.eyebrow {
  display: block;
  margin-bottom: .6em;
  font-family: var(--titel);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blau);
}

.wrap { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 22px; }
.wrap--schmal { max-width: 800px; }
.prosa { max-width: 70ch; }

.section { padding: clamp(44px, 6vw, 84px) 0; }
.section--eng { padding: clamp(30px, 4vw, 52px) 0; }
.section--flaeche { background: var(--flaeche); }
.section--navy { background: var(--navy); color: #DDE3F3; }
.section--navy h2, .section--navy h3 { color: var(--weiss); }
.section--navy a { color: var(--weiss); }
.section-head { max-width: 760px; margin-bottom: 2.2rem; }
.section-head p:last-child { margin-bottom: 0; }

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em;
  border: 2px solid var(--blau); border-radius: var(--radius);
  background: var(--blau); color: var(--weiss);
  font-family: var(--titel); font-size: 16px; font-weight: 600; letter-spacing: .02em;
  line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover, .btn:focus { background: var(--blau-dunkel); border-color: var(--blau-dunkel); color: var(--weiss); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--blau); }
.btn--ghost:hover { background: var(--blau-hell); color: var(--blau-dunkel); border-color: var(--blau); }
.btn--rot { background: var(--rot); border-color: var(--rot); }
.btn--rot:hover { background: #A82A22; border-color: #A82A22; }
.btn--weiss { background: var(--weiss); border-color: var(--weiss); color: var(--navy); }
.btn--weiss:hover { background: transparent; color: var(--weiss); }
.btn--sm { padding: .5em 1em; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Kopf -------------------------------------------------------------------- */

.topbar { background: var(--navy); color: #C9D2EC; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; min-height: 36px; }
.topbar a { color: var(--weiss); }
.topbar__spacer { margin-left: auto; }
.topbar__sturm { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; }
.topbar__sturm::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rot); }
.langs { display: flex; gap: 2px; }
.langs a { padding: 2px 8px; border-radius: var(--radius); font-weight: 600; }
.langs a[aria-current="true"] { background: var(--blau); color: var(--weiss); }

.masthead { position: sticky; top: 0; z-index: 50; background: var(--weiss); border-bottom: 1px solid var(--linie); }
.masthead .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand:hover { text-decoration: none; }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: 8px 13px; color: var(--navy); font-family: var(--titel); font-size: 16px; font-weight: 600; }
.nav a:hover { color: var(--blau); text-decoration: none; }
.nav a[aria-current="page"], .nav li.ist-aktiv > a { color: var(--blau); }
.nav .btn { margin-left: 8px; color: var(--weiss); }
.nav .btn:hover, .nav .btn[aria-current="page"] { color: var(--weiss); }

.nav li.hat-unter { position: relative; }
.nav li.hat-unter > a::after {
  content: ""; display: inline-block; margin-left: .45em; vertical-align: .15em;
  width: .38em; height: .38em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.nav .untermenue {
  display: none; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 250px;
  margin: 0; padding: 6px 0; list-style: none;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: 0 10px 24px rgba(23,32,70,.12);
}
.nav li.hat-unter:hover > .untermenue, .nav li.hat-unter:focus-within > .untermenue { display: block; }
.nav .untermenue a { padding: 8px 18px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav .untermenue a:hover { background: var(--flaeche); }

.nav-toggle {
  display: none; margin-left: auto; padding: .5em .9em;
  border: 1px solid var(--linie); border-radius: var(--radius); background: var(--weiss); color: var(--navy);
  font: inherit; font-family: var(--titel); font-weight: 600; cursor: pointer;
}

/* Hero -------------------------------------------------------------------- */

.hero { position: relative; background: var(--navy); color: var(--weiss); overflow: hidden; }
.hero__bild { position: absolute; inset: 0; }
.hero__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero__bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,32,70,.88) 0%, rgba(23,32,70,.72) 45%, rgba(23,32,70,.25) 100%); }
.hero .wrap { position: relative; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); max-width: var(--breite); }
.hero__inhalt { max-width: 620px; }
.hero h1 { color: var(--weiss); margin-bottom: .4em; }
.hero p { font-size: 19px; line-height: 1.55; color: #E3E8F6; max-width: 56ch; }
.hero .eyebrow { color: #9FB4F0; }
.hero .btn-row { margin-top: 1.6rem; }
.hero--klein .wrap { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero--klein h1 { font-size: clamp(30px, 3.8vw, 44px); }

/* Faktenleiste ------------------------------------------------------------ */

.fakten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--weiss); overflow: hidden; }
.fakt { padding: 20px 22px; border-right: 1px solid var(--linie); }
.fakt:last-child { border-right: 0; }
.fakt__wert { display: block; font-family: var(--titel); font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.fakt__text { display: block; margin-top: 6px; font-size: 14px; color: var(--grau); line-height: 1.4; }

/* Karten ------------------------------------------------------------------ */

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: flex; flex-direction: column;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden;
  color: var(--text); text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--blau); box-shadow: 0 4px 18px rgba(47,95,217,.12); text-decoration: none; color: var(--text); }
.card__bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.card__body h2, .card__body h3 { font-size: 20px; margin-bottom: .35em; }
.card__body p { font-size: 15.5px; line-height: 1.6; margin-bottom: .8em; }
.card__foot { margin-top: auto; padding-top: .4rem; font-family: var(--titel); font-weight: 600; color: var(--blau); }
.card--rot { border-top: 4px solid var(--rot); }
.card--blau { border-top: 4px solid var(--blau); }

/* Zweispalter ------------------------------------------------------------- */

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.split--umgekehrt > :first-child { order: 2; }
.split img { border-radius: var(--radius); }

/* Listen ------------------------------------------------------------------ */

.haken { list-style: none; margin: 0 0 1.2em; padding: 0; }
.haken li { position: relative; padding-left: 1.7em; margin-bottom: .5em; }
.haken li::before {
  content: ""; position: absolute; left: .1em; top: .5em;
  width: .85em; height: .45em; border-left: 2.5px solid var(--blau); border-bottom: 2.5px solid var(--blau); transform: rotate(-45deg);
}
.haken--eng li { margin-bottom: .3em; font-size: 15.5px; }

.schritte { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.schritte li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.schritte li::before {
  content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--weiss); font-family: var(--titel); font-weight: 700; font-size: 18px;
}
.schritte h3 { font-size: 18px; margin-bottom: .2em; }
.schritte p { font-size: 15.5px; }

/* Tabellen ---------------------------------------------------------------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--weiss); }
table.data { width: 100%; border-collapse: collapse; font-size: 15.5px; }
table.data th, table.data td { padding: .75em 1em; text-align: left; border-bottom: 1px solid var(--linie); vertical-align: top; }
table.data thead th { background: var(--flaeche); color: var(--navy); font-family: var(--titel); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data th[scope="row"] { font-weight: 600; color: var(--navy); }
table.data td.n { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Preise / Pakete --------------------------------------------------------- */

.paket { border: 1px solid var(--linie); border-radius: var(--radius); background: var(--weiss); padding: 24px; display: flex; flex-direction: column; }
.paket--empfohlen { border: 2px solid var(--blau); }
.paket__name { font-family: var(--titel); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blau); }
.paket__preis { font-family: var(--titel); font-size: 34px; font-weight: 700; color: var(--navy); line-height: 1; margin: 8px 0 2px; }
.paket__einheit { font-size: 14px; color: var(--grau); margin-bottom: 14px; }
.paket .haken { margin-bottom: 1.4em; }
.paket .btn { margin-top: auto; }

/* Hinweis / Notfall ------------------------------------------------------- */

.hinweis { padding: 16px 20px; border-left: 4px solid var(--blau); background: var(--blau-hell); border-radius: 0 var(--radius) var(--radius) 0; font-size: 15.5px; }
.hinweis--rot { border-color: var(--rot); background: var(--rot-hell); }
.hinweis--pruefen { border-color: #B0700A; background: #FBF1DC; }
.hinweis strong { color: var(--navy); }

.notfall { background: var(--rot); color: var(--weiss); border-radius: var(--radius); padding: 26px 28px; display: grid; grid-template-columns: 1fr auto; gap: 18px 30px; align-items: center; }
.notfall h2 { color: var(--weiss); font-size: 24px; margin: 0 0 .2em; }
.notfall p { margin: 0; color: #FBE3E0; }
.notfall a.tel { font-family: var(--titel); font-size: 30px; font-weight: 700; color: var(--weiss); white-space: nowrap; }

/* FAQ --------------------------------------------------------------------- */

.faq details { border-top: 1px solid var(--linie); }
.faq details:last-child { border-bottom: 1px solid var(--linie); }
.faq summary { cursor: pointer; padding: 16px 0; font-family: var(--titel); font-size: 18px; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blau); font-size: 24px; line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; max-width: 72ch; font-size: 16px; }

/* Aufruf-Band ------------------------------------------------------------- */

.cta { background: var(--blau); color: var(--weiss); }
.cta h2 { color: var(--weiss); }
.cta p { color: #E3E8F6; }
.cta__grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; }

/* Formular ---------------------------------------------------------------- */

form.anfrage label { display: block; font-family: var(--titel); font-weight: 600; font-size: 15px; color: var(--navy); }
form.anfrage input[type="text"], form.anfrage input[type="email"], form.anfrage input[type="tel"], form.anfrage select, form.anfrage textarea {
  width: 100%; margin-top: 5px; padding: .65em .8em; font: inherit; font-size: 16px; color: var(--text);
  border: 1px solid var(--linie); border-radius: var(--radius); background: var(--weiss);
}
form.anfrage textarea { resize: vertical; }
form.anfrage input[type="file"] { display: block; margin-top: 6px; font: inherit; font-size: 15px; color: var(--text); }
form.anfrage .einwilligung { display: flex; gap: 10px; align-items: flex-start; font-family: var(--schrift); font-weight: 400; font-size: 15px; color: var(--text); }
form.anfrage .einwilligung input { margin-top: 4px; }
.honigtopf { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Fuss -------------------------------------------------------------------- */

.foot { background: var(--navy); color: #C9D2EC; padding: 52px 0 28px; font-size: 15px; }
.foot h3 { color: var(--weiss); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8em; }
.foot a { color: var(--weiss); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .4em; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot__bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; color: #9FB0DA; }
.foot__spacer { margin-left: auto; }

/* Prototyp-Hinweis -------------------------------------------------------- */

.proto { background: #FBF1DC; color: #5A3A00; text-align: center; padding: 7px 16px; font-size: 13px; border-bottom: 3px solid #B0700A; }
.proto strong { color: #7A4F00; }

/* Responsiv --------------------------------------------------------------- */

@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fakten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fakt:nth-child(2) { border-right: 0; }
  .fakt:nth-child(1), .fakt:nth-child(2) { border-bottom: 1px solid var(--linie); }
  .split { grid-template-columns: 1fr; }
  .split--umgekehrt > :first-child { order: 0; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--weiss); border-bottom: 1px solid var(--linie); padding: 8px 12px 16px; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { padding: 10px 8px; border-bottom: 1px solid var(--linie); }
  .nav .untermenue { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
  .nav .untermenue a { border-bottom: 0; padding: 6px 8px; }
  .nav li.hat-unter > a::after { display: none; }
  .nav .btn { margin: 10px 8px 0; }
  .cta__grid, .notfall { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .fakten { grid-template-columns: 1fr; }
  .fakt { border-right: 0; border-bottom: 1px solid var(--linie); }
  .fakt:last-child { border-bottom: 0; }
  .foot__grid { grid-template-columns: 1fr; }
  .topbar__hide-sm { display: none; }
  .hero__bild::after { background: rgba(23,32,70,.78); }
}

/* Hello Elementor: Inhalt volle Breite, unsere .wrap begrenzt selbst ------- */
.site-main { max-width: none; margin: 0; padding: 0; }
.site-main > .page-content, .site-main > .page-header { max-width: none; padding: 0; }
body.elementor-page .site-main { padding: 0; }
