/*
Theme Name: SchneppeOne
Theme URI: https://example.com
Author: Andreas Schneppe
Author URI: https://example.com
Description: Blank/Starter Theme für SchneppeOne – nackt aber bequem.
Version: 1.4.9
Text Domain: schneppe-one
*/

/* =========
   Reset & Defaults
   ========= */
*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #111;
  background: #fff;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
p, ul, ol { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; line-height: 1.2; }
button, input, textarea, select { font: inherit; }

/* =========
   Layout Helpers (einfaches Grid)
   ========= */
:root {
  --container: 1100px;
  --gap: 1.25rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: var(--gap);
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 800px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* =========
   Header / Nav
   ========= */
.site-header {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.primary-nav ul,
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.primary-nav a,
.footer-nav a {
  text-decoration: none;
}
.primary-nav a:hover,
.footer-nav a:hover {
  text-decoration: underline;
}

/* =========
   Main & Sidebar
   ========= */
.site-main { padding: 2rem 0; }

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
}

@media (max-width: 1000px) {
  .content-wrap { grid-template-columns: 1fr; }
}

.widget {
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: .5rem;
  margin-bottom: 1rem;
}

/* =========
   Articles
   ========= */
.post-card {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.post-card:last-child { border-bottom: 0; }

.post-meta {
  font-size: .9rem;
  color: #555;
}

/* =========
   Footer
   ========= */
.site-footer {
  border-top: 1px solid #eee;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.site-footer .footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-bottom {
  border-top: 1px solid #f2f2f2;
  padding-top: 1rem;
  font-size: .9rem;
  color: #555;
}

/* =========
   Header Actions + Search + CTA
   ========= */
.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* Search */
.searchform {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.search-input {
  border: 1px solid #ddd;
  padding: .45rem .6rem;
  border-radius: .5rem;
  min-width: 160px;
}

.search-button {
  border: 1px solid #ddd;
  background: #fff;
  padding: .45rem .6rem;
  border-radius: .5rem;
  cursor: pointer;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1rem;
  border-radius: .75rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: #e30613;
  color: #fff;
}

.btn-primary:hover { filter: brightness(0.95); }

/* =========
   Hamburger Menu (rechts)
   ========= */
.menu-toggle {
  display: none;
  border: 1px solid #ddd;
  background: #fff;
  padding: .5rem .7rem;
  border-radius: .5rem;
  cursor: pointer;
  line-height: 0;
}

.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

/* Mobile default: menu hidden */
.primary-nav { position: relative; }

/* =========
   Finer Type / Spacing Breakpoints
   ========= */
@media (max-width: 1200px) {
  :root { --gap: 1rem; }
  body { font-size: 15.5px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

@media (max-width: 900px) {
  :root { --gap: .9rem; }
  body { font-size: 15px; }
  .site-main { padding: 1.5rem 0; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.2rem; }

  .site-header .header-inner {
    flex-wrap: wrap;
    row-gap: .75rem;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .search-input { min-width: 0; flex: 1; }
}

@media (max-width: 900px) {
  body { font-size: 14.5px; }
  .site-main { padding: 1.25rem 0; }
  .site-header { padding: .75rem 0; }

  .menu-toggle { display: inline-flex; } /* hamburger visible */

  /* Stack brand left, hamburger right */
  .brand { flex: 1; }
  .header-inner { align-items: center; }

  /* Collapse nav into dropdown */
  .primary-nav {
    width: 100%;
    order: 3;
    display: none;
  }
  .primary-nav ul {
    flex-direction: column;
    gap: .25rem;
    padding: .5rem 0;
  }
  .primary-nav a {
    display: block;
    padding: .5rem 0;
  }

  /* When opened (body or header class set by JS) */

  /* Actions below nav */
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .container { width: min(100% - 1.25rem, var(--container)); }
}

/* =========
   Submenu indicators + toggle
   ========= */
/* Add arrow for items with children */
.primary-nav .menu-item-has-children > a::after {
  content: "▾";
  font-size: .8em;
  margin-left: .35em;
}

/* Desktop submenu basic */
@media (min-width: 901px) {
  .primary-nav .menu-item-has-children { position: relative; }
  .primary-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: .5rem;
    padding: .5rem .75rem;
    min-width: 200px;
    z-index: 50;
  }
  .primary-nav .menu-item-has-children:hover > .sub-menu,
  .primary-nav .menu-item-has-children:focus-within > .sub-menu {
    display: block;
  }
  .primary-nav .sub-menu li { margin: 0; }
  .primary-nav .sub-menu a { padding: .35rem 0; }
}

/* Mobile submenu collapsible */
@media (max-width: 900px) {
  .primary-nav .sub-menu {
    display: none;
    padding-left: 1rem;
  }
  .primary-nav .menu-item-has-children.is-open > .sub-menu {
    display: block;
  }
  .primary-nav .submenu-toggle {
    margin-left: auto;
    border: 0;
    background: transparent;
    padding: .4rem .2rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
  }
}

/* =========
   Sticky header
   ========= */
.site-header.is-sticky {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

.primary-nav { justify-self: center; }
.primary-nav ul { justify-content: center; }

.header-actions{
  justify-self: end;
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* Suche in Zeile 2 auf Desktop */
.header-search{
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: .5rem;
}

.search-input{ min-width: 220px; }

/* Mobile: flex stacking */
@media (max-width: 900px){
  .site-header .header-inner{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }



  .search-input{ min-width: 0; flex: 1; }
}
  .header-actions { width: 100%; order: 4; flex-wrap: wrap; justify-content: flex-start; }
  .header-search{
    grid-column: auto;
    width: 100%;
    justify-content: flex-start;
    margin-top: 0;
  }
  .search-input{ min-width: 0; flex: 1; }
}

/* =========
   Option A: Header-Layout mit Suche in zweiter Zeile (Desktop)
   ========= */
.site-header .header-inner{
  display: grid;
  grid-template-columns: auto 1fr auto; /* Brand | Menu | Actions */
  align-items: center;
  gap: 1rem;
}

.primary-nav { justify-self: center; }
.primary-nav ul { justify-content: center; }

.header-actions{
  justify-self: end;
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* Suche in Zeile 2 auf Desktop */
.header-search{
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: .5rem;
}

.search-input{ min-width: 220px; }

/* Mobile: flex stacking */
@media (max-width: 900px){
  .site-header .header-inner{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .menu-toggle { display: inline-flex; }
  .brand { flex: 1; }

  .primary-nav { width: 100%; order: 3; display: none; }
  .primary-nav ul {
    flex-direction: column;
    gap: .25rem;
    padding: .5rem 0;
  }
  .primary-nav a { display: block; padding: .5rem 0; }
  .primary-nav.is-open { display: block; }

  .header-actions { order: 4; width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .header-search { order: 5; width: 100%; justify-content: flex-start; margin-top: 0; }

  .search-input{ min-width: 0; flex: 1; }
}

/* =========
   DESKTOP OVERRIDE – verhindert Mobile-Leaks
   ========= */
@media (min-width: 901px){

  /* Header muss Grid sein */
  .site-header .header-inner{
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 1rem !important;
  }

  /* Hamburger auf Desktop aus */
  .menu-toggle{
    display: none !important;
  }

  /* Nav sichtbar + normal positioniert */
  .primary-nav{
    display: block !important;
    width: auto !important;
    order: 0 !important;
  }

  /* Menü horizontal erzwingen */
  .primary-nav ul{
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .primary-nav li{
    margin: 0 !important;
  }

  /* Actions rechts */
  .header-actions{
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Suche bleibt in Zeile 2 */
  .header-search{
    grid-column: 1 / -1 !important;
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: .5rem !important;
  }
}

/* =========
   Desktop Grid Areas (fix CTA Position)
   Suche volle Breite unter Menü + Button
   ========= */
@media (min-width: 901px){
  .site-header .header-inner{
    grid-template-areas:
      "brand nav actions"
      "search search search";
  }
  .brand{ grid-area: brand; }
  .primary-nav{ grid-area: nav; }
  .header-actions{ grid-area: actions; }
  .header-search{ grid-area: search; }
  .header-actions{ align-self: center; }
}.brand{ grid-area: brand; }
  .primary-nav{ grid-area: nav; }
  .header-actions{ grid-area: actions; }
  .header-search{ grid-area: search; }
  .header-actions{ align-self: center; }
}

/* =========
   Footer 3-Spalten (auto-fit, robust)
   ========= */
.footer-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 1.5rem 0;
}

.footer-title{
  margin-bottom: .75rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.site-footer .menu{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .4rem;
}

.site-footer .menu a{
  text-decoration: none;
}
.site-footer .menu a:hover{
  text-decoration: underline;
}
/* =========
   Footer Social + Shop
   ========= */
.footer-social{
  display: flex;
  gap: .75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.social-link{
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e5e5;
  border-radius: .6rem;
  text-decoration: none;
}

.social-link svg{
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-link:hover{
  transform: translateY(-1px);
  border-color: #ccc;
}

.footer-subtitle{
  margin: 0 0 .35rem;
  font-size: 1rem;
  font-weight: 700;
}

.footer-shop p{
  margin-bottom: .6rem;
}

.footer-shoplink{
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.footer-shoplink:hover{
  opacity: .85;
}

/* =========
   Footer Grid Override (Desktop)
   ========= */
.site-footer .footer-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 2rem !important;
  align-items: start;
}

@media (max-width: 900px){
  .site-footer .footer-grid{
    grid-template-columns: 1fr !important;
  }
}

/* Footer-Button etwas kompakter */
.footer-shoplink{
  padding: .5rem .9rem;
  font-size: .95rem;
  border-radius: .65rem;
}

/* =========
   Warm/Persönlich Design System
   ========= */
:root{
  /* Brand */
  --brand: #e30613;
  --brand-dark: #b7050f;

  /* Warm Neutrals */
  --bg: #ffffff;
  --bg-alt: #faf6f1;
  --surface: #ffffff;
  --line: #eee4da;
  --text: #1b1b1b;
  --text-soft: #5f5a55;

  /* Optionaler Akzent */
  --accent: #7b8f7a;
}

body{
  color: var(--text);
  background: var(--bg);
}

/* Typography warm upgrade */
.content-area{
  max-width: 920px;
  margin-inline: auto;
}
.content-area p{
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--text-soft);
}
h1,h2,h3{
  color: var(--text);
  letter-spacing: .2px;
}

/* Section rhythm */
.section{ padding: 3rem 0; }
.section--alt{
  background: var(--bg-alt);
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Cards for Leistungen */
.cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.25rem;
}
@media(max-width:900px){
  .cards{ grid-template-columns:1fr; }
}

.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: 0 8px 22px rgba(20,15,10,.05);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover{
  transform: translateY(-4px);
  border-color: #e9d8c8;
  box-shadow: 0 12px 30px rgba(20,15,10,.10);
}
.card-title{
  font-size: 1.25rem;
  margin-bottom: .35rem;
}
.card-text{
  color: var(--text-soft);
}

/* CTA block */
.cta{
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}
@media(max-width:900px){
  .cta{ grid-template-columns:1fr; text-align:center; }
  .cta-actions{ justify-content:center; }
}
.cta-title{ font-size:1.6rem; margin:0 0 .4rem; }
.cta-text{ color: var(--text-soft); margin:0; }
.cta-actions{ display:flex; gap:.6rem; }

/* Buttons using palette */
.btn-primary{
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover{ background: var(--brand-dark); }

.btn-secondary{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-secondary:hover{
  border-color: #d9c4b1;
  background: #fff;
}

/* Warm link hover in content */
.content-area a{
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .2s ease;
}
.content-area a:hover{ background-size: 100% 2px; }

/* Images softer */
.content-area img{
  border-radius: 1rem;
  box-shadow: 0 10px 26px rgba(20,15,10,.08);
}

/* Hero */
.hero{
  padding: 5rem 0 3rem;
  background: radial-gradient(1200px circle at 10% -20%, #f3f3f3, transparent 60%);
}
.hero .lead{
  font-size: 1.15rem;
  color: var(--text-soft);
}

/* =========
   Footer Layout Tweaks für Tablets
   ========= */
@media (max-width: 900px){
  .site-footer .footer-grid{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}
@media (max-width: 600px){
  .site-footer .footer-grid{
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .site-footer .footer-social{
    justify-content: center;
  }
  .site-footer .menu{
    justify-items: center;
  }
}

/* =========
   Footer Layout Variante:
   Kontakt volle Breite, darunter 2 Spalten Rechtliches / Folgen
   ========= */
@media (max-width: 900px){
  .site-footer .footer-grid{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    grid-template-areas:
      "contact contact"
      "legal extra";
  }
  .site-footer .footer-contact{ grid-area: contact; }
  .site-footer .footer-legal{ grid-area: legal; }
  .site-footer .footer-extra{ grid-area: extra; }
}

/* Kontakt-Block auf Tablet leicht absetzen */
@media (max-width: 900px){
  .site-footer .footer-contact{
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.25rem;
  }
}

/* =========
   Kontaktformular Styling (ohne Plugin)
   ========= */
.contact-form{
  display: grid;
  gap: .9rem;
  margin-top: 1rem;
}

.form-row label{
  display:block;
  font-weight:600;
  margin-bottom:.35rem;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  padding:.7rem .85rem;
  border:1px solid var(--line);
  border-radius:.75rem;
  font: inherit;
  background:#fff;
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline:none;
  border-color:#cfc0b0;
  box-shadow:0 0 0 3px rgba(0,0,0,.04);
}

.checkbox-row label{
  font-weight:500;
  color:var(--text-soft);
  display:flex;
  gap:.5rem;
  align-items:flex-start;
}

/* Meldungen */
.notice{
  padding:.85rem 1rem;
  border-radius:.75rem;
  margin-bottom:1rem;
  border:1px solid var(--line);
}
.notice-success{
  background:#f3f7f3;
  border-color:#ccd8cc;
}
.notice-error{
  background:#fff3f3;
  border-color:#f1c2c2;
}

/* Honeypot unsichtbar */
.hp-field{
  position:absolute;
  left:-9999px;
  height:0;
  overflow:hidden;
}

/* =========
   Kontaktseite Layout
   ========= */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px){
  .contact-grid{
    grid-template-columns: 1fr;
  }
}

/* =========
   Standort-Block (Karte/Illustration)
   ========= */
.location-card{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.25rem;
  padding: 1.25rem;
}
.location-text h2{
  margin-top: 0;
}
.location-list{
  margin: .75rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
  display: grid;
  gap: .25rem;
}
.location-map{
  position: relative;
  min-height: 220px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  display:flex;
  align-items:center;
  justify-content:center;
}
.location-map iframe{
  width:100%;
  height:100%;
  border:0;
}
.map-placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: .75rem;
}
.map-placeholder svg{
  width:100%;
  height:auto;
  display:block;
}
@media (max-width: 900px){
  .location-card{
    grid-template-columns: 1fr;
  }
  .location-map{
    min-height: 200px;
  }
}

/* =========
   Kontaktformular Checkbox Fix
   ========= */
.checkbox-row label{
  display:flex;
  align-items:flex-start;
  gap:.6rem;
  line-height:1.4;
}
.checkbox-row input[type="checkbox"]{
  margin-top:.2rem;
  flex:0 0 auto;
}

/* =========
   Privacy Checkbox – robustes Layout ohne Link-Kollisionen
   ========= */
.checkbox-row .cf-privacy-label{
  display:grid !important;
  grid-template-columns: 1.2rem 1fr;
  column-gap:.6rem;
  align-items:start;
  line-height:1.45;
}

.checkbox-row .cf-privacy-label input[type="checkbox"]{
  margin-top:.2rem;
}

.checkbox-row .cf-privacy-text{
  display:inline;
  white-space:normal;
  word-break:normal;
  overflow-wrap:break-word;
  hyphens:auto;
}

/* Link komplett aus globalen Styles lösen und neu stylen */
.checkbox-row .cf-privacy-link{
  all: unset !important;
  display:inline !important;
  color: var(--brand);
  text-decoration: underline;
  cursor: pointer;
}

/* Auf sehr kleinen Screens darf auch der Link umbrechen */
@media (max-width: 480px){
  .checkbox-row .cf-privacy-link{
    white-space:normal;
    overflow-wrap:break-word;
  }
}

/* =========
   Google Map im Standort-Block vollflächig
   ========= */
.location-map{
  padding: 0 !important; /* falls irgendwo Padding gesetzt wird */
}
.location-map iframe{
  display:block;
  width:100% !important;
  height:100% !important;
  min-height: 220px;
  border:0 !important;
}
.location-map .map-placeholder{
  display:none !important; /* wenn iframe da ist, Placeholder ausblenden */
}


/* =========
   FAQ / Details Styling
   ========= */

.faq-item{
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  padding: .15rem .15rem;
  margin: .75rem 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.03);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.faq-item:hover{
  border-color: #e7d7c7;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

.faq-item summary{
  cursor: pointer;
  list-style: none; /* removes default marker */
  font-weight: 700;
  padding: 1rem 1.1rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* Default marker weg (Chrome/Safari) */
.faq-item summary::-webkit-details-marker{
  display:none;
}

/* Pfeil-Icon rechts */
.faq-item summary::after{
  content: "";
  width: .55rem;
  height: .55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  position: absolute;
  right: 1.1rem;
  top: 50%;
  margin-top: -.35rem;
  transition: transform .2s ease;
  opacity: .7;
}

/* Offen-Zustand */
.faq-item[open]{
  border-color: #e7d7c7;
  background: #fffdfb;
}

.faq-item[open] summary::after{
  transform: rotate(225deg); /* Pfeil nach oben */
  opacity: 1;
}

/* Inhalt */
.faq-body{
  padding: 0 1.1rem 1.1rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.faq-body p{
  margin: .6rem 0 0;
}

.faq-body ol,
.faq-body ul{
  margin: .6rem 0 0 1.2rem;
  display: grid;
  gap: .25rem;
}

/* Nice focus (Accessibility) */
.faq-item summary:focus-visible{
  outline: 3px solid rgba(227,6,19,.18);
  outline-offset: 2px;
  border-radius: .9rem;
}

/* Mobile spacing */
@media (max-width: 640px){
  .faq-item summary{
    padding: .9rem 1rem;
  }
  .faq-body{
    padding: 0 1rem 1rem;
  }
}

/* =========
   FAQ – Salbei-Indicator + Icon-Strich links
   ========= */

/* Salbeifarbe nur für Indicators */
:root{
  --sage: #9AA889; /* falls du schon eine Salbei-Variable hast, nimm die */
}

/* linker Strich */
.faq-item summary::before{
  content:"";
  width: .35rem;
  height: 1.2rem;
  border-radius: 999px;
  background: var(--sage);
  flex: 0 0 auto;
  opacity: .9;
}

/* Pfeil rechts salbeifarben */
.faq-item summary::after{
  border-right-color: var(--sage);
  border-bottom-color: var(--sage);
  opacity: .9;
}

/* optional: im offenen Zustand etwas satter */
.faq-item[open] summary::after,
.faq-item[open] summary::before{
  opacity: 1;
}

/* optional: bei Hover minimal kräftiger */
.faq-item:hover summary::after,
.faq-item:hover summary::before{
  opacity: 1;
}

.badge{
  display:inline-block;
  padding:.25rem .6rem;
  border-radius:999px;
  font-size:.85rem;
  font-weight:600;
  background:#eee;
}

.badge--new{ background:#e7f0ff; color:#1d4ed8; }
.badge--progress{ background:#fff7e6; color:#b45309; }
.badge--waiting{ background:#fdecec; color:#b91c1c; }
.badge--done{ background:#e9f9ee; color:#15803d; }

/* ================
   Ticket Chat UI
   ================ */
.ticket-thread {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.ticket-msg {
  display: flex;
  width: 100%;
}

.ticket-msg--left { justify-content: flex-start; }
.ticket-msg--right { justify-content: flex-end; }

.ticket-msg__bubble {
  max-width: 760px;
  width: fit-content;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  box-shadow: var(--shadow-soft, 0 6px 18px rgba(0,0,0,.06));
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-soft, #eee);
  position: relative;
}

.ticket-msg--left .ticket-msg__bubble {
  border-top-left-radius: 6px;
  background: var(--card-bg, #fff);
}

.ticket-msg--right .ticket-msg__bubble {
  border-top-right-radius: 6px;
  background: rgba(0,0,0,.03);
}

/* Meta line */
.ticket-msg__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  font-size: .85rem;
  color: var(--text-soft, #777);
  margin-bottom: .4rem;
}

.ticket-msg__author {
  font-weight: 700;
  color: var(--text, #111);
}

.ticket-msg__label {
  font-weight: 700;
  font-size: .75rem;
  padding: .15rem .5rem;
  border-radius: 999px;
}

.label-support {
  background: var(--brand, #0a66ff);
  color: #fff;
}

.label-kunde {
  background: #111;
  color: #fff;
}

.ticket-msg__text p:last-child { margin-bottom: 0; }

/* Reply box spacing */
.ticket-reply .ticket-comment-form textarea {
  width: 100%;
  min-height: 140px;
  padding: .8rem;
  border-radius: 12px;
  border: 1px solid var(--border-soft, #ddd);
}
.ticket-reply input[type="file"] {
  margin-top: .25rem;
}

/* =========================
   Ticket Hero + Status Box
   ========================= */
.ticket-hero-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: start;
  margin-top: .5rem;
}

.ticket-hero-title h1 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.2;
}

.ticket-hero-meta {
  margin-top: .5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .9rem;
  color: var(--text-soft, #777);
}

.ticket-hero-meta .dot {
  opacity: .6;
}

/* Status Box */
.ticket-status-box {
  min-width: 220px;
  padding: 1rem;
  border-radius: 16px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-soft, #eee);
  box-shadow: var(--shadow-soft, 0 6px 18px rgba(0,0,0,.06));
  display: grid;
  gap: .6rem;
  position: sticky;
  top: 1rem;
}

.ticket-status-box__label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-soft, #777);
  font-weight: 700;
}

.ticket-status-box__status {
  font-size: 1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .35rem .7rem;
  border-radius: 999px;
  width: fit-content;
}

.ticket-status-box__action {
  width: 100%;
  text-align: center;
}

.ticket-status-box__done {
  font-size: .9rem;
  color: var(--text, #111);
  font-weight: 600;
  background: rgba(0,0,0,.04);
  padding: .5rem .6rem;
  border-radius: 10px;
}

/* Mobile */
@media (max-width: 900px) {
  .ticket-hero-head {
    grid-template-columns: 1fr;
  }
  .ticket-status-box {
    position: static;
    width: 100%;
  }
}


/* =========================================================
   TICKETS – Status Box + Badges (stärker farbig)
   ========================================================= */

.ticket-hero-head{
  display:grid;
  grid-template-columns: 1fr 280px;
  gap:1.25rem;
  align-items:start;
  margin-top:.5rem;
}
@media (max-width: 900px){
  .ticket-hero-head{
    grid-template-columns: 1fr;
  }
}

.ticket-hero-meta{
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
  margin-top:.6rem;
  color:var(--text-soft);
  font-size:.95rem;
}
.ticket-hero-meta .dot{ opacity:.5; }

/* Status Box */
.ticket-status-box{
  background: #0f1115;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  position:relative;
  overflow:hidden;
}
.ticket-status-box__label{
  font-size:.85rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--text-soft);
  margin-bottom:.35rem;
}
.ticket-status-box__status{
  display:inline-flex;
  align-items:center;
  font-weight:700;
  font-size:1.05rem;
  padding:.45rem .75rem;
  border-radius:999px;
  border:1px solid transparent;
}
.ticket-status-box__action{
  width:100%;
  text-align:center;
  margin-top:.75rem;
}
.ticket-status-box__done{
  margin-top:.75rem;
  font-size:.95rem;
  color:#a9f5c1;
  font-weight:600;
}

/* Badges / Statusfarben */
.badge{
  display:inline-flex;
  align-items:center;
  padding:.35rem .7rem;
  border-radius:999px;
  font-weight:700;
  font-size:.9rem;
  border:1px solid transparent;
}

/* NEU = blau */
.badge--new{
  background: rgba(53,124,255,.15);
  color:#7fb0ff;
  border-color: rgba(53,124,255,.45);
  box-shadow: 0 0 0 3px rgba(53,124,255,.10) inset;
}

/* IN BEARBEITUNG = gelb */
.badge--progress{
  background: rgba(255,196,46,.18);
  color:#ffd36e;
  border-color: rgba(255,196,46,.55);
  box-shadow: 0 0 0 3px rgba(255,196,46,.12) inset;
}

/* WARTEN AUF KUNDE = orange */
.badge--waiting{
  background: rgba(255,131,46,.18);
  color:#ffb081;
  border-color: rgba(255,131,46,.55);
  box-shadow: 0 0 0 3px rgba(255,131,46,.12) inset;
}

/* ERLEDIGT = grün */
.badge--done{
  background: rgba(34,197,94,.18);
  color:#91efb8;
  border-color: rgba(34,197,94,.55);
  box-shadow: 0 0 0 3px rgba(34,197,94,.12) inset;
}

/* Timeline */
.ticket-timeline{
  margin-top:.9rem;
  display:flex;
  gap:.35rem;
  flex-wrap:wrap;
}
.ticket-timeline__step{
  flex:1 1 auto;
  min-width:90px;
  text-align:center;
  padding:.35rem .5rem;
  border-radius:10px;
  font-size:.85rem;
  font-weight:700;
  background: rgba(255,255,255,.04);
  color: var(--text-soft);
  border:1px dashed rgba(255,255,255,.10);
}
.ticket-timeline__step.is-active{
  color:#fff;
  border-style:solid;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
}
.ticket-timeline__step.is-done{
  color:#c9ffe0;
  border-style:solid;
  border-color: rgba(34,197,94,.5);
  background: rgba(34,197,94,.12);
}

.is-latest {
  outline: 2px solid var(--brand);
  border-radius: 12px;
  transition: outline 0.3s ease;
}

.sinwx-price-suffix{
  font-weight: 600;
  color: #111;
  font-size: .95rem;
}

.sinwx-price-footnote{
  margin-top: .9rem;
  font-size: .9rem;
  color: #666;
}

