/*
Theme Name: Hausmeisterservice Stott
Theme URI: https://hausmeisterservicestott.de
Author: Nathaniel für Simon Stott
Description: Individuelles Theme nach der Layoutvorlage "Lay_HP-Stott_02" – Teal-Verlauf, weiße Karte, Logo-Badge, anklickbare Werkzeug-Icons mit Info-Popups. Keine externen Ressourcen (DSGVO-freundlich).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hausmeisterservice-stott
*/

:root{
  --teal:        #0E8A76;
  --teal-deep:   #073F45;
  --badge-green: #0B7A66;
  --ink:         #1B1B1B;
  --grau:        #4A4A4A;
  --karte:       #FFFFFF;
  --karte-rand:  #E4E4E4;
  --akzent:      #0E8A76;
  --sans: system-ui,-apple-system,"Segoe UI","Helvetica Neue",Helvetica,Arial,sans-serif;
}

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

html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}

body{
  font-family:var(--sans);
  color:var(--ink);
  font-size:17px;
  line-height:1.55;
  min-height:100vh;
  background:linear-gradient(168deg,var(--teal) 0%,#0B6B63 34%,var(--teal-deep) 100%) fixed;
  -webkit-font-smoothing:antialiased;
}

a{color:var(--teal)}
a:focus-visible,button:focus-visible{outline:3px solid #FFD24D;outline-offset:3px;border-radius:3px}

.buehne{
  max-width:1120px;
  margin:0 auto;
  padding:34px 26px 70px;
  position:relative;
}

/* ---------- "Hilfe."-Schriftzug (Link zur Startseite) ---------- */
.rufwort{
  display:inline-block;
  color:#EAF6F2;
  font-size:clamp(2rem,4.5vw,2.9rem);
  font-weight:700;
  letter-spacing:.01em;
  margin:6px 0 18px 8px;
  text-decoration:none;
}
.rufwort::after{content:".";color:#9FD9CC}
.rufwort:hover{color:#FFFFFF}
.rufwort:hover::after{color:var(--teal)}

/* ---------- Logo-Badge ---------- */
.badge{
  position:absolute;
  top:8px; right:10px;
  width:min(330px,42vw);
  border-radius:26px;
  padding:20px 24px 18px;
  background:linear-gradient(180deg,#FDFDFD 0%,#E9EFEA 42%,#3FA286 72%,var(--badge-green) 100%);
  border:3px solid rgba(255,255,255,.75);
  box-shadow:0 10px 26px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.9);
  z-index:5;
  text-align:center;
  text-decoration:none;
  display:block;
}
.badge-icons{display:flex;justify-content:center;gap:18px;margin-bottom:10px}
.badge-icons svg{width:56px;height:56px;stroke:var(--ink);fill:none;stroke-width:5}
.badge-wort{
  color:#FFF;
  font-size:clamp(1.05rem,2.4vw,1.45rem);
  letter-spacing:.14em;
  line-height:1.18;
  text-transform:uppercase;
  font-weight:300;
  text-shadow:0 1px 2px rgba(0,0,0,.25);
}
.badge-wort strong{font-weight:800;letter-spacing:.1em}

/* ---------- Weiße Karte ---------- */
.karte{
  position:relative;
  margin-top:64px;
  background:linear-gradient(160deg,#FFFFFF 55%,#ECECEC 100%);
  border-radius:34px;
  box-shadow:0 18px 50px rgba(0,0,0,.32);
  min-height:640px;
  padding:34px 44px 0;
  overflow:hidden;
}

/* ---------- Werkzeug-Icons: eine Reihe oben in der Karte ---------- */
.icon-leiste{
  display:flex;flex-wrap:wrap;gap:22px;align-items:center;
  justify-content:space-between; /* auf breiten Bildschirmen über die freie Breite verteilen */
  padding-right:min(340px,38%); /* Platz für das überlappende Logo-Badge */
  position:relative;z-index:3;
}
.werkzeug{
  position:relative;
  width:60px;height:60px;
  background:none;border:none;cursor:pointer;padding:4px;
}
.werkzeug svg{width:100%;height:100%;stroke:var(--ink);fill:none;stroke-width:4.5}
.werkzeug::after{
  content:"";position:absolute;right:-2px;bottom:-2px;
  border-style:solid;border-width:0 0 13px 13px;
  border-color:transparent transparent var(--teal) transparent;
}
.werkzeug:hover svg{stroke:var(--teal)}

/* ---------- Inhalt ---------- */
.inhalt{
  max-width:620px;
  margin:56px 0 40px;
  position:relative;
  z-index:2;
}
.inhalt h1,.inhalt h2{font-size:1.55rem;font-weight:800;margin-bottom:16px}
.inhalt p{margin-bottom:14px;color:var(--ink)}

/* Kontaktblock */
.kontakt{
  display:flex;gap:16px;align-items:flex-start;
  margin:56px 0 46px;position:relative;z-index:2;
}
.kontakt svg{width:44px;height:44px;flex:none;stroke:var(--ink);fill:none;stroke-width:5}
.kontakt-zeilen{font-size:1.05rem;line-height:1.6}
.kontakt-zeilen strong{font-weight:800}
.kontakt-zeilen a{color:var(--ink)}

/* Portrait */
.portrait{
  position:absolute;right:0;bottom:0;z-index:1;
  max-width:min(360px,40%);
  display:block;
}
.portrait img{width:100%;height:auto;display:block}

/* ---------- Popup / Modal ---------- */
.schleier{
  position:fixed;inset:0;z-index:50;
  background:rgba(7,50,55,.55);
  display:none;align-items:center;justify-content:center;
  padding:22px;
}
.schleier.offen{display:flex}
.popup{
  background:linear-gradient(160deg,#FFFFFF 55%,#EDEDED 100%);
  border-radius:30px;
  box-shadow:0 24px 60px rgba(0,0,0,.45);
  max-width:660px;width:100%;
  padding:40px 46px 44px;
  position:relative;
  display:flex;gap:26px;align-items:flex-start;
}
.popup-icon{flex:none;width:74px;height:74px}
.popup-icon svg{width:100%;height:100%;stroke:var(--ink);fill:none;stroke-width:4.5}
.popup-eyebrow{
  font-size:.85rem;color:var(--grau);
  padding-bottom:6px;margin-bottom:10px;
  border-bottom:1px solid #8a8a8a;
}
.popup h3{font-size:1.35rem;font-weight:800;margin-bottom:12px}
.popup-text p{margin-bottom:10px}
.popup-zu{
  position:absolute;top:18px;right:22px;
  background:none;border:none;cursor:pointer;
  font-size:1.6rem;line-height:1;font-weight:700;color:var(--ink);
  padding:6px;
}
.popup-zu:hover{color:var(--teal)}

/* ---------- Unterseiten (Impressum, Datenschutz, Kontakt) ---------- */
.karte.seite{padding-bottom:60px;min-height:420px}
.karte.seite .inhalt{margin-top:70px;max-width:720px}
.karte.seite h1{font-size:1.7rem;margin-bottom:20px}
.karte.seite h2{font-size:1.15rem;margin:26px 0 8px}
.karte.seite h3{font-size:1.02rem;margin:20px 0 6px}
.karte.seite ul,.karte.seite ol{margin:8px 0 12px 24px}
.karte.seite address{font-style:normal;font-family:ui-monospace,Consolas,monospace;background:#F4F4F4;border:1px solid var(--karte-rand);border-radius:8px;padding:14px 18px;margin:12px 0;display:inline-block}

/* ---------- Fußzeile ---------- */
.fuss{
  max-width:1120px;margin:0 auto;padding:22px 26px 40px;
  color:#CFE8E1;font-size:.95rem;
  display:flex;flex-direction:column;gap:14px;
}
.fuss a{color:#EAF6F2}
.fuss-menu{list-style:none;display:flex;flex-wrap:wrap}
.fuss-menu li + li::before{content:"·";margin:0 8px;color:#9FD9CC}
.fuss-leistungen{padding-bottom:18px;border-bottom:1px solid rgba(255,255,255,.18)}

/* Kacheln im Stil des Logo-Badges: glänzende Fläche oben, grüne Wortleiste unten */
.fuss-kacheln{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:16px;
}
.fuss-kachel{
  display:flex;flex-direction:column;height:100%;
  border-radius:18px;overflow:hidden;
  border:2px solid rgba(255,255,255,.75);
  box-shadow:0 8px 18px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.9);
  text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease;
}
.fuss-kachel:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 24px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.9);
}
.kachel-icon{
  display:flex;align-items:center;justify-content:center;
  padding:16px 10px 12px;
  background:linear-gradient(180deg,#FDFDFD 0%,#E9EFEA 100%);
}
.kachel-icon svg{width:46px;height:46px;stroke:var(--ink);fill:none;stroke-width:4.5}
.fuss-kachel:hover .kachel-icon svg{stroke:var(--badge-green)}
.kachel-wort{
  background:linear-gradient(180deg,#3FA286 0%,var(--badge-green) 100%);
  color:#FFF;text-align:center;
  font-size:.82rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
  padding:9px 8px;margin-top:auto;
  text-shadow:0 1px 2px rgba(0,0,0,.25);
}
.fuss-zeile{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}

/* ---------- Leistungsseiten ---------- */
.cta-box{
  margin:36px 0 10px;padding:26px 28px;
  background:#F2F7F5;border:1px solid #CDE4DD;border-left:6px solid var(--teal);
  border-radius:12px;
}
.cta-titel{font-weight:700;margin-bottom:12px}
.cta-knopf{
  display:inline-block;background:var(--teal);color:#FFF;
  text-decoration:none;font-weight:800;font-size:1.15rem;
  padding:12px 24px;border-radius:8px;margin:0 12px 8px 0;
}
.cta-knopf:hover{background:var(--teal-deep)}
.cta-mail{font-weight:600;white-space:nowrap}
.cta-hinweis{font-size:.88rem;color:#5c5c5c;margin-top:10px}

.leistung-links,.leistung-uebersicht{margin-top:34px}
.leistung-links h2,.leistung-uebersicht h2{font-size:1.05rem;margin-bottom:10px}
.leistung-links ul,.leistung-uebersicht ul{list-style:none;margin:0;display:flex;flex-wrap:wrap;gap:10px}
.leistung-links li a,.leistung-uebersicht li a{
  display:inline-block;text-decoration:none;color:var(--ink);
  background:#F4F4F4;border:1px solid var(--karte-rand);border-radius:999px;
  padding:8px 16px;font-size:.92rem;font-weight:600;
}
.leistung-links li a:hover,.leistung-uebersicht li a:hover{border-color:var(--teal);color:var(--teal)}

.popup-mehr{margin-top:12px}
.popup-mehr a{font-weight:700;text-decoration:none}
.popup-mehr a:hover{text-decoration:underline}

/* ---------- Kontaktformular ---------- */
.kontakt-formular{max-width:560px;margin-top:26px}
.kontakt-formular p{margin-bottom:16px}
.kontakt-formular label{display:block;font-weight:600;margin-bottom:5px;font-size:.95rem}
.kontakt-formular input[type="text"],
.kontakt-formular input[type="email"],
.kontakt-formular input[type="tel"],
.kontakt-formular select,
.kontakt-formular textarea{
  width:100%;padding:11px 13px;
  border:1px solid #C9C9C9;border-radius:8px;
  font:inherit;background:#FFF;color:var(--ink);
}
.kontakt-formular input:focus,
.kontakt-formular select:focus,
.kontakt-formular textarea:focus{
  outline:none;border-color:var(--teal);
  box-shadow:0 0 0 3px rgba(14,138,118,.18);
}
.pflicht{color:#B3401F}
.hs-hp{position:absolute!important;left:-9999px;top:-9999px}

.angebot-block{
  border:1px dashed #BDBDBD;border-radius:10px;
  padding:0 16px;margin:20px 0;
  background:#FAFAF8;
}
.angebot-block[open]{padding-bottom:8px}
.angebot-block summary{
  cursor:pointer;font-weight:600;padding:13px 0;
  color:var(--teal-deep);
}
.angebot-block summary:hover{color:var(--teal)}

.einwilligung label{font-weight:400;font-size:.9rem;display:flex;gap:10px;align-items:flex-start}
.einwilligung input{margin-top:3px;flex:none}

.hinweis{border-radius:10px;padding:16px 20px;margin:22px 0;max-width:560px}
.hinweis ul{margin:0 0 0 18px}
.hinweis-ok{background:#EAF6EF;border:1px solid #9CCFAE}
.hinweis-fehler{background:#FBEFEC;border:1px solid #E4B4A6}

/* ---------- Barrierefreiheit ---------- */
.screen-reader-text{
  clip:rect(1px,1px,1px,1px);clip-path:inset(50%);
  height:1px;width:1px;overflow:hidden;position:absolute!important;
}

/* ---------- Mobil ---------- */
@media (max-width:840px){
  .badge{position:static;margin:0 auto 22px;width:min(320px,86vw)}
  .rufwort{text-align:center;margin-left:0}
  .karte{margin-top:0;padding:26px 24px 0;min-height:0}
  .icon-leiste{padding-right:0;gap:14px;justify-content:flex-start}
  .werkzeug{width:54px;height:54px}
  .inhalt{margin-top:34px}
  .portrait{position:static;margin:10px -24px 0 auto;max-width:62%}
  .popup{flex-direction:column;padding:30px 26px 34px;gap:14px}
}
