/* Local Life Website (Vorschau 28.09.): Bausteine ueber basis.css (aus der Automatenseite) hinaus */

/* Kopfzeile: Menue fuer schmale Bildschirme */
.topbar .menue { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--green-tint); cursor: pointer; position: relative; }
.topbar .menue span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 250ms, top 250ms; }
.topbar .menue span:first-child { top: 18px; } .topbar .menue span:last-child { top: 25px; }
body.menue-offen .topbar .menue span:first-child { top: 21px; transform: rotate(45deg); }
body.menue-offen .topbar .menue span:last-child { top: 21px; transform: rotate(-45deg); }
.menue-blatt { display: none; pointer-events: auto; position: absolute; left: 16px; right: 16px; top: 80px; background: #F8FBF7; border: 1px solid var(--line); border-radius: 28px; padding: 14px; box-shadow: 0 24px 60px -30px rgba(15,51,25,.45); }
.menue-blatt nav { display: grid; gap: 4px; }
.menue-blatt nav a { text-decoration: none; font-weight: 600; font-size: 17px; padding: 12px 16px; border-radius: 14px; color: var(--ink); }
.menue-blatt nav a.aktiv, .menue-blatt nav a:hover { background: var(--green-tint); }
body.menue-offen .menue-blatt { display: block; }
.topbar .menue-blatt nav { display: grid !important; }   /* basis.css blendet .topbar nav auf schmalen Bildschirmen aus, das Menue-Blatt nicht */
@media (max-width: 900px) { .topbar nav { display: none; } .topbar .menue { display: block; } body.gescrollt .topbar .leiste { width: min(560px, 100% - 32px); } }
@media (max-width: 768px) { .topbar .leiste { height: 60px; gap: 10px; padding: 0 8px 0 14px; } .topbar .logo { height: 28px; } .topbar .anfrage { padding: 10px 14px; font-size: 14px; } }

/* Seitenkopf fuer Unterseiten (ohne Buehne) */
.seitenkopf { padding: calc(var(--nav-h) + var(--s-8)) 0 var(--s-8); }
.seitenkopf .stichwort { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--green-2); margin-bottom: 14px; }
.seitenkopf h1 { font-size: clamp(40px, 5.6vw, 76px); max-width: 14em; }
.seitenkopf .lauf { margin-top: 18px; font-size: clamp(17px, 1.35vw, 20px); }
.seitenkopf .aktionen { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.zweispalt { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-8); align-items: center; }
@media (max-width: 900px) { .zweispalt { grid-template-columns: 1fr; } }

/* Hero mit Echtzeit-Buehne (Startseite) */
#hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--paper); }
#hero canvas, #hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#hero .poster { object-fit: contain; object-position: 78% 55%; opacity: 1; transition: opacity 700ms ease; pointer-events: none; }
#hero canvas { opacity: 0; transition: opacity 700ms ease; touch-action: pan-y; }
#hero canvas.an { opacity: 1; } #hero.an .poster { opacity: 0; }
#hero .kapitel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(-50%); }
#hero.drehbar { cursor: grab; } #hero.drehbar.zieht { cursor: grabbing; }
#hero .etikett { position: absolute; left: clamp(16px, 5vw, 64px); top: calc(var(--nav-h, 96px) + 8px); z-index: 6; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-2); pointer-events: none; }
#hero .drehhinweis { position: absolute; right: clamp(16px, 5vw, 64px); bottom: 34px; z-index: 6; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
#hero .weiter { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
#hero .weiter .maus { width: 18px; height: 28px; border: 2px solid var(--muted); border-radius: 10px; position: relative; opacity: .7; }
#hero .weiter .maus::after { content: ""; position: absolute; left: 50%; top: 5px; width: 2px; height: 6px; background: var(--muted); transform: translateX(-50%); animation: rollen 1.6s infinite; }
body.hochkant #hero .kapitel { top: var(--karte-oben, 58svh); transform: none; }
body.hochkant #hero .kapitel .merkmale { display: none; }   /* Handy: Karte kompakt, beide Knoepfe sichtbar */
body.hochkant #hero .kapitel .stichwort { font-size: 11.5px; }
body.hochkant #hero .poster { object-position: 50% 22%; }
body.hochkant #hero .etikett, body.hochkant #hero .drehhinweis, body.hochkant #hero .weiter { display: none; }

/* Zahlenkacheln, Kartenraster, Schrittleiste */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.kachel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 34px 32px 30px; }
.kachel b { display: block; font: 800 clamp(40px, 4vw, 60px)/1 var(--font-display); color: var(--green-2); }
.kachel span { display: block; font-size: 17px; font-weight: 600; margin-top: 10px; }
.kachel small { display: block; font-size: 14.5px; color: var(--muted); margin-top: 6px; }
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.karte { position: relative; display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; transition: transform 220ms var(--ease-in-out), box-shadow 220ms; }
.karte:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(15,51,25,.5); }
.karte .bild { aspect-ratio: 4 / 3; background: var(--green-tint) center/cover no-repeat; }
.karte .bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.karte .bild.geraet { aspect-ratio: 1 / 1; background: linear-gradient(180deg, #ffffff 0%, #eef5f0 100%); } .karte .bild.geraet img { object-fit: contain; object-position: 50% 100%; padding: 16px 16px 0; }
.karte .bild.geraet.dunkel { background: radial-gradient(90% 70% at 50% 100%, #33271b 0%, #1d1610 75%); } .karte .bild.geraet.dunkel img { padding: 20px 16px 0; filter: drop-shadow(0 18px 22px rgba(0,0,0,.45)); }
.karte .text { padding: 22px 26px 26px; }
.karte .tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--green-2); background: var(--green-tint); border-radius: var(--pill); padding: 6px 12px; margin-bottom: 12px; }
.karte h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 8px; }
.karte p { font-size: 15.5px; color: var(--muted); }
.karte .pfeil { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--green-2); }
.schritte-leiste { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; counter-reset: schritt; }
.schritte-leiste div { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 26px 24px 22px 24px; }
.schritte-leiste div::before { counter-increment: schritt; content: counter(schritt); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font: 800 16px/34px var(--font-display); justify-content: center; margin-bottom: 14px; }
.schritte-leiste b { display: block; font-size: 18px; margin-bottom: 6px; }
.schritte-leiste span { font-size: 15px; color: var(--muted); }

/* Produktband (Sortiment) */
.produktband { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 18px; scrollbar-width: thin; }
.produktband figure { flex: none; width: 190px; margin: 0; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 18px 14px 14px; text-align: center; }
.produktband img { width: 100%; height: 170px; object-fit: contain; display: block; }
.produktband figcaption { font-size: 13.5px; font-weight: 600; margin-top: 10px; line-height: 1.3; }
.produktband figcaption small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.produkte-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.produkte-raster figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 18px 14px 14px; text-align: center; }
.produkte-raster img { width: 100%; height: 190px; object-fit: contain; display: block; }
.produkte-raster figcaption { font-size: 13.5px; font-weight: 600; margin-top: 10px; line-height: 1.3; }
.produkte-raster figcaption small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.produktband figure.hat-3d, .produkte-raster figure.hat-3d { position: relative; padding: 0; }
figure.hat-3d > a { display: block; padding: 18px 14px 14px; color: inherit; text-decoration: none; border-radius: 28px; transition: transform .25s ease, box-shadow .25s ease; }
figure.hat-3d > a:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(20, 60, 30, .10); }
.marke-3d { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--green-2); background: var(--green-tint); border-radius: var(--pill); padding: 4px 8px; }
.filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0 22px; }
.filter button { border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 14px/1 var(--font-body); padding: 10px 16px; border-radius: var(--pill); cursor: pointer; }
.filter button.aktiv { background: var(--green-2); color: #fff; border-color: var(--green-2); }

/* Bildbuehne mit Text (Automat kurz, Showroom) */
.bildreihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bildreihe figure { margin: 0; border-radius: 32px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.bildreihe img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.bildreihe figcaption { padding: 16px 20px 20px; font-size: 15px; }
.bildreihe figcaption b { display: block; font-size: 17px; margin-bottom: 4px; }
@media (max-width: 900px) { .bildreihe { grid-template-columns: 1fr; } .bildreihe img { aspect-ratio: 16 / 10; } }

/* Platzhalter fuer Fotos, die noch kommen */
.platzhalter { position: relative; flex-direction: column; background: repeating-linear-gradient(135deg, #EAF6ED 0 14px, #F3FAF5 14px 28px); border: 2px dashed var(--green-light); border-radius: 32px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--green-2); font-weight: 700; padding: 24px; min-height: 240px; }
.platzhalter small { display: block; font-weight: 500; color: var(--muted); margin-top: 6px; font-size: 13.5px; }
.platzhalter.gross { aspect-ratio: 16 / 9; } .platzhalter.hoch { aspect-ratio: 4 / 5; } .platzhalter.quer { aspect-ratio: 3 / 2; }

/* UBIQ-Karte: der Uebergang zur Kaffeemarke */
.ubiq { position: relative; overflow: hidden; border-radius: var(--radius-card); background: #1d1610; color: #f3e9d9; padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-7); align-items: center; }
.ubiq::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 40%, rgba(196,154,88,.22), transparent 60%); pointer-events: none; }
.ubiq .wortmarke { font: 700 clamp(28px, 3vw, 40px)/1 Georgia, "Times New Roman", serif; letter-spacing: .12em; }
.ubiq .wortmarke small { display: block; font: 600 11px/1 var(--font-body); letter-spacing: .34em; margin-top: 8px; color: #c9a45c; }
.ubiq h2 { color: #fff; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.01em; margin: 22px 0 14px; }
.ubiq p { color: rgba(243,233,217,.86); max-width: 34em; }
.ubiq .knopf.gold { background: #c9a45c; color: #1d1610; }
.ubiq .knopf.gold:hover { background: #d9b672; transform: translateY(-2px); }
.ubiq .knopf.hell { background: transparent; color: #f3e9d9; box-shadow: inset 0 0 0 2px rgba(243,233,217,.35); }
.ubiq .bild { position: relative; justify-self: center; }
.ubiq .bild img { max-height: 460px; width: auto; display: block; filter: drop-shadow(0 40px 50px rgba(0,0,0,.5)); }
.ubiq .hinweis-marke { font-size: 13px; color: rgba(243,233,217,.6); margin-top: 18px; }
@media (max-width: 900px) { .ubiq { grid-template-columns: 1fr; } .ubiq .bild img { max-height: 320px; } }

/* Showroom */
.termin { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.termin .voll { grid-column: 1 / -1; }
fieldset.termin, .termin fieldset, form.formular fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.termin legend, .termin legend, form.formular legend { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; padding: 0; }
.termin .wahl { display: flex; gap: 8px; flex-wrap: wrap; }
.termin .wahl label { border: 1px solid var(--line); background: var(--paper); border-radius: var(--pill); padding: 10px 14px; font-size: 14.5px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.termin .wahl input { width: auto; margin: 0; accent-color: var(--green); }
@media (max-width: 700px) { .termin { grid-template-columns: 1fr; } }
.adresse { background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: 28px 30px; }
.adresse b { display: block; font-size: 18px; margin-bottom: 8px; }
.adresse p { color: var(--muted); font-size: 15.5px; }
.karte-frame { border-radius: 32px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--green-tint); }
.karte-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Zeitleiste (Ueber uns) */
.zeitleiste { display: grid; gap: 14px; }
.zeitleiste div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.zeitleiste b { font: 800 26px/1.1 var(--font-display); color: var(--green-2); }
.zeitleiste p { color: var(--ink); }
.personen { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.personen figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 32px; overflow: hidden; }
.personen img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; display: block; background: var(--green-tint); }
.personen figcaption { padding: 16px 20px 20px; }
.personen figcaption b { display: block; font-size: 17px; }
.personen figcaption span { color: var(--muted); font-size: 14.5px; }

/* Allgemein */
section.block .kopfzeile { max-width: 40em; margin-bottom: var(--s-7); }
section.block .kopfzeile .stichwort { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--green-2); margin-bottom: 14px; }
section.block .kopfzeile p { margin-top: 14px; font-size: clamp(16px, 1.25vw, 19px); color: var(--muted); }
.hinweis-vorschau { display: inline-block; font-size: 12px; color: var(--red-dark); background: #fde8e6; border-radius: var(--pill); padding: 4px 10px; vertical-align: middle; }
.ufer-weiss { background: #fff; }

/* Vergleichstabelle (Standortseiten) */
.vergleich { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; font-size: 15.5px; }
.vergleich th, .vergleich td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.vergleich thead th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--green-tint); }
.vergleich tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.vergleich td.ja { color: var(--green-2); font-weight: 700; }
.vergleich td.ja span::before { content: "✓ "; }
@media (max-width: 640px) {
  .vergleich thead { display: none; }
  .vergleich tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .vergleich tr:last-child { border-bottom: 0; }
  .vergleich tbody th { grid-column: 1 / -1; width: auto; padding: 12px 16px 2px; border-bottom: 0; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .vergleich td { padding: 4px 16px 12px; border-bottom: 0; font-size: 14.5px; }
  .vergleich td::before { content: attr(data-k); display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .vergleich td.ja::before { color: var(--green-2); }
}
.vergleich tr:last-child th, .vergleich tr:last-child td { border-bottom: 0; }

/* Rechtstexte */
.rechtstext { max-width: 44em; font-size: 16px; color: var(--ink); }
.rechtstext h2, .rechtstext h3 { font-family: var(--font-body); font-weight: 700; color: var(--ink); margin: 28px 0 8px; font-size: 20px; line-height: 1.3; }
.rechtstext h3 { font-size: 17px; }
.rechtstext p, .rechtstext li { margin: 0 0 10px; color: var(--muted); }
.rechtstext a { color: var(--green-2); }
.rechtstext nav, .rechtstext .toc { display: none; }
img[src*="foto-mann-automat"] { object-position: 50% 12%; }   /* Hochformat-Foto: Koepfe im Ausschnitt lassen */

/* Standort-Empfehler (Anwendungen) */
.empfehler .filter { margin-bottom: var(--s-5); }
.empfehler-tafel .kopfzeile { margin-bottom: var(--s-5); }
.empfehler-tafel .kopfzeile h3 { font-size: clamp(24px, 2.4vw, 34px); margin: 8px 0 10px; }
.empfehler-tafel .karten { grid-template-columns: repeat(auto-fill, minmax(240px, 300px)); }
.empfehler-tafel .karte .bild.geraet { aspect-ratio: 4 / 3; }
.empfehler-tafel .aktionen { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--s-5); }

/* Website mit Unterseiten: die Navigation bleibt auch nach dem Scrollen sichtbar (Desktop); auf dem Handy die kompakte Pille mit Menue */
@media (min-width: 901px) {
  body.gescrollt .topbar .leiste { width: min(var(--container), 100% - 2 * clamp(16px, 5vw, 64px)); height: 62px; padding: 0 10px 0 18px; gap: 14px; }
  body.gescrollt .topbar nav { display: flex; }
  body.gescrollt .topbar .logo { height: 30px; }
}
