/*
 * pondis.ch – Gestaltung
 * Farben aus der bisherigen Seite, ruhiger und luftiger umgesetzt.
 * Keine externen Bibliotheken (früher Bootstrap 3 vom CDN).
 */

/* ---------- Schrift (lokal, SIL Open Font License, siehe fonts/LibreFranklin-OFL.txt) ---------- */
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/libre-franklin-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/libre-franklin-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/libre-franklin-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/libre-franklin-cyrillic-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* ---------- Farben und Masse ---------- */
:root {
  --navy: #1e3254;        /* Text, Menü (bisherige Seite) */
  --blue: #00539f;        /* Logo-Blau */
  --red: #e32119;         /* Akzent, Schweizerkreuz im Logo */
  --ice: #eaf5f8;         /* heller Hintergrund (bisherige Seite) */
  --ice-2: #f5fafc;
  --line: #d5e3ea;
  --muted: #55657e;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(30 50 84 / .06), 0 8px 24px rgb(30 50 84 / .08);
  --wrap: 1200px;
  --gap: clamp(1rem, 2.5vw, 2rem);
}

*, *::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: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 350;
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); font-weight: 300; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-weight: 400; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 100; border-radius: 6px; }
.skip:focus { left: .5rem; }
.accent { color: var(--red); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: .75rem; }

/* ---------- Knöpfe ---------- */
.button {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .7em 1.3em; border-radius: 999px;
  background: var(--navy); color: #fff; text-decoration: none; font-weight: 500;
  transition: background .2s, transform .2s;
}
.button:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }
.button-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.button-ghost:hover { background: var(--ice); color: var(--navy); }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.logo img { width: 150px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav > ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav > ul a {
  display: block; padding: .5rem .85rem; border-radius: 999px;
  color: var(--navy); text-decoration: none; font-weight: 450;
}
.site-nav > ul a:hover { background: var(--ice); color: var(--navy); }
.site-nav > ul a[aria-current="page"] { background: var(--ice); font-weight: 600; }

.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer; padding: .45rem .8rem; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line); font-size: .9rem; font-weight: 500; user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch[open] summary { background: var(--ice); }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + .5rem); min-width: 12rem;
  list-style: none; margin: 0; padding: .4rem; background: #fff;
  border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.lang-switch li a { display: block; padding: .45rem .75rem; border-radius: 8px; color: var(--navy); text-decoration: none; }
.lang-switch li a:hover { background: var(--ice); }
.lang-switch li a[aria-current="true"] { font-weight: 600; color: var(--blue); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--ice); cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 20px; height: 2px; background: var(--navy); position: relative; transition: transform .2s;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  .header-inner { flex-wrap: wrap; }
  /* Ohne JavaScript bleibt das Menü sichtbar; mit JS wird es auf- und zugeklappt */
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: .5rem; padding-bottom: 1rem; }
  .site-nav > ul { flex-direction: column; }
  .site-nav > ul a { padding: .75rem 1rem; font-size: 1.1rem; }
  .lang-switch ul { position: static; box-shadow: none; margin-top: .5rem; display: grid; grid-template-columns: 1fr 1fr; }
}

.notice {
  margin: 1.25rem 0 0; padding: .8rem 1rem; border-radius: 10px;
  background: #fff7e6; border: 1px solid #f3d9a4; font-size: .95rem;
}

/* ---------- Bildkarussell ---------- */
.slider { position: relative; }
.slider-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; }
.slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ratio-2-1 .slide img { aspect-ratio: 2 / 1; }
.ratio-16-9 .slide img { aspect-ratio: 16 / 9; object-fit: contain; background: var(--ice-2); }
.page-home .slide img { max-height: calc(100vh - 72px); min-height: 280px; }

.slider-btn {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgb(255 255 255 / .85); color: var(--navy); font-size: 1.8rem; line-height: 1;
  box-shadow: var(--shadow); transition: background .2s;
}
.slider-btn:hover { background: #fff; }
.slider-btn.prev { left: clamp(.5rem, 2vw, 1.5rem); }
.slider-btn.next { right: clamp(.5rem, 2vw, 1.5rem); }
.slider-dots {
  position: absolute; left: 50%; bottom: 1rem; translate: -50% 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; max-width: 90%;
  padding: .4rem .6rem; border-radius: 999px; background: rgb(30 50 84 / .35);
}
.slider-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgb(255 255 255 / .6);
}
.slider-dots button[aria-current="true"] { background: #fff; transform: scale(1.3); }
@media (max-width: 600px) { .slider-dots { display: none; } .slider-btn { width: 40px; height: 40px; } }

/* ---------- Startseite ---------- */
.intro { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem); max-width: 980px; }
.headline { font-size: clamp(1.25rem, 1rem + 1.6vw, 2.3rem); font-weight: 300; line-height: 1.35; }
.headline .accent { font-weight: 500; }

.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center; padding-block: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.feature-reverse .feature-text { order: 2; }
.feature-media { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.feature-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s; }
.feature-media:hover img { transform: scale(1.03); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature-reverse .feature-text { order: 0; }
}
.banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* ---------- Fliesstext ---------- */
.prose { max-width: 75ch; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--red); }
.prose h2 { margin-top: 2rem; }
.prose .zoom { display: block; margin: 1rem 0 1.75rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: zoom-in; }
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.lead { font-size: 1.08em; }
.lead strong { font-weight: 450; }
.text-page { padding-bottom: 4rem; }

.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) 1rem; }

/* ---------- Produkte ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chips a {
  padding: .45rem .9rem; border-radius: 999px; background: var(--ice); color: var(--navy);
  text-decoration: none; font-size: .92rem;
}
.chips a:hover { background: var(--navy); color: #fff; }
@media (max-width: 600px) { .chips { display: none; } }

.group { padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.group-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: 2rem; }
.group-head h2 a, .group-head h1 { color: var(--navy); text-decoration: none; }
.group-head h2 a:hover { color: var(--blue); }
.group-media { border-radius: var(--radius); overflow: hidden; }
.group-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 860px) { .group-head { grid-template-columns: 1fr; } }
.cards-heading { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }

.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.25rem;
}
.card a {
  display: flex; flex-direction: column; height: 100%;
  border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 1px solid var(--line); color: var(--navy); text-decoration: none;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card a:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--ice-2); }
.card-title { padding: 1rem 1.1rem .25rem; font-weight: 600; flex: 1; }
.card-more { padding: 0 1.1rem 1rem; color: var(--red); font-size: .9rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 1.5rem 0 0; padding: 0; font-size: .9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; }
.breadcrumb a { color: var(--muted); }

.product { padding-block: 1.5rem 4rem; }
.product-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-bottom: 2.5rem; }
@media (max-width: 860px) { .product-top { grid-template-columns: 1fr; } .product-head { order: -1; } }
.gallery-main { display: block; border-radius: var(--radius); overflow: hidden; background: var(--ice-2); cursor: zoom-in; }
.gallery-main img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: .75rem 0 0; }
.gallery-thumbs a { display: block; width: 84px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: .75; }
.gallery-thumbs a[aria-current="true"], .gallery-thumbs a:hover { border-color: var(--red); opacity: 1; }
.gallery-thumbs img { aspect-ratio: 3 / 2; object-fit: cover; }
.product-head h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }

.tab-list { display: flex; gap: .5rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.tab-list button {
  font: inherit; font-weight: 500; color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: .8rem 1.1rem; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab-list button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--red); }
.tab-panel + .tab-panel { margin-top: 3rem; }
.js .tab-panel + .tab-panel { margin-top: 0; }
.js .tab-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Über uns ---------- */
.team {
  list-style: none; padding: 0 0 3rem; display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}
.person img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.person p { margin-top: .8rem; font-size: .95rem; color: var(--muted); }
.person strong { color: var(--navy); font-size: 1.05rem; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; padding-bottom: 4rem; }
.contact-card { background: var(--ice-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.contact-card address { font-style: normal; margin-bottom: 1rem; font-size: 1.1rem; }
.contact-list { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0 0 1.5rem; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; }
.map-links { display: flex; flex-wrap: wrap; gap: .6rem; }

.notfound { padding-bottom: 5rem; }

/* ---------- Fusszeile ---------- */
.site-footer { background: var(--navy); color: #d9e3ef; margin-top: 2rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffb4ae; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-tagline { margin-top: 1rem; max-width: 32ch; color: #b8c6d8; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-links { list-style: none; margin: 0; padding: 0; line-height: 2; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid rgb(255 255 255 / .12); color: #9fb0c6; font-size: .85rem; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgb(15 25 45 / .88); }
.lightbox img { max-width: 96vw; max-height: 94vh; width: auto; height: auto; object-fit: contain; background: #fff; border-radius: 8px; }
.lightbox-close {
  position: fixed; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #fff; color: var(--navy); font-size: 1.6rem; cursor: pointer;
}

@media print {
  .site-header, .site-footer, .slider-btn, .slider-dots, .tab-list { display: none !important; }
  .js .tab-title { position: static; width: auto; height: auto; clip: auto; }
  .tab-panel[hidden] { display: block !important; }
}
