/* ==========================================================
   kurt-kaelin.ch – Stylesheet im Erscheinungsbild der SVP
   (Farben, Schriften und Kachel-Raster angelehnt an svp.ch)
   ========================================================== */

@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/RobotoCondensed-latin.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/RobotoCondensed-Italic-latin.woff2") format("woff2");
  font-weight: 400 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  /* SVP-Farben */
  --svp-green: #009f4e;
  --svp-green-dark: #00803f;
  --svp-green-light: #75b947;
  --svp-lime: #7cb309;
  --svp-yellow: #ffed00;
  --svp-red: #e30613;
  --svp-black: #1d1d1b;

  --bg: #f5f5f5;
  --tile: #ffffff;
  --heading: #262d33;
  --text: #4b5157;
  --muted: #939699;
  --line: #e6e6e6;
  --green-tint: #eaf5ee;

  --font-head: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Roboto", Arial, Helvetica, sans-serif;

  --radius: 10px;
  --shadow: 0 2px 10px rgb(0 0 0 / .06);
  --shadow-hover: 0 10px 28px rgb(0 0 0 / .12);
  --wrap: 1180px;
  --gutter: clamp(16px, 3.5vw, 32px);
  --gap: 16px;
  --header-h: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; color: var(--heading); line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .fill { fill: currentColor; stroke: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--svp-green); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--svp-yellow); outline-offset: 2px; }

/* ---------- Kacheln ---------- */
.tile {
  background: var(--tile);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tile-green { background: var(--svp-green); color: #fff; }
.tile-green h1, .tile-green h2, .tile-green h3, .tile-green h4 { color: #fff; }

.tile-kicker, .kicker, .tag {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tile-kicker { display: block; font-size: .95rem; margin: 0 0 12px; opacity: .9; }

/* ---------- Buttons (Pill wie svp.ch) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.6em;
  border-radius: 25px;
  background: var(--svp-green);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--svp-green);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--svp-green-dark); border-color: var(--svp-green-dark); transform: translateY(-1px); }
.btn-sm { padding: .6em 1.4em; }
.btn-white { background: #fff; border-color: #fff; color: var(--svp-green); }
.btn-white:hover { background: var(--svp-yellow); border-color: var(--svp-yellow); color: var(--svp-black); }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; border-color: #fff; color: var(--svp-green); }

/* ---------- Header (weisse Kachel wie svp.ch) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 20px 0 8px; background: linear-gradient(var(--bg) 75%, rgb(245 245 245 / 0)); }
.header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px 24px;
  transition: box-shadow .3s ease;
}
.site-header.scrolled .header-inner { box-shadow: var(--shadow-hover); }

.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand-logo { width: 84px; height: auto; }
.brand-text {
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--heading); line-height: 1.05;
  padding-left: 16px; border-left: 1px solid var(--line);
}
.brand-text small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .8rem; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--heading); padding: 6px 0; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px;
  background: var(--svp-green); transform: scaleX(0); transition: transform .2s ease;
}
.nav a:not(.btn):hover, .nav a:not(.btn).active { color: var(--svp-green); }
.nav a:not(.btn).active::after { transform: scaleX(1); }


.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative;
}
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--heading); border-radius: 2px; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 8px 0 0; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap); }
.hero-main {
  padding: clamp(32px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-main::after {
  /* dezente Sonne im Hintergrund */
  content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgb(255 237 0 / .35), rgb(255 237 0 / 0) 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  margin-bottom: 22px;
  position: relative;
}
.claim {
  display: inline-block;
  margin-top: .12em;
  padding: .02em .22em .04em;
  background: var(--svp-yellow);
  color: var(--svp-black);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  transform: rotate(-2deg);
}
.hero .lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgb(255 255 255 / .92); max-width: 36em; position: relative; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; position: relative; }

.tile-photo { margin: 0; position: relative; overflow: hidden; min-height: 420px; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .6s ease; }
.tile-photo:hover img { transform: scale(1.03); }
.tile-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 80px 24px 22px;
  background: linear-gradient(transparent, rgb(0 0 0 / .75));
  color: #fff;
}
.tile-photo figcaption .tile-kicker { margin-bottom: 4px; color: var(--svp-yellow); opacity: 1; }
.tile-photo figcaption strong { font-family: var(--font-head); font-size: 2rem; line-height: 1; }

.facts { margin: var(--gap) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.fact { padding: 22px 24px; border-top: 4px solid var(--svp-green); }
.fact dt { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: var(--svp-green); line-height: 1.05; }
.fact dd { margin: 6px 0 0; font-size: .92rem; line-height: 1.4; }

/* ---------- Werte-Band ---------- */
.values-band { margin-top: clamp(48px, 7vw, 80px); background: var(--svp-green); color: #fff; overflow: hidden; padding: 16px 0; }
.values-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.values-band:hover .values-track { animation-play-state: paused; }
.values-track ul { display: flex; list-style: none; margin: 0; padding: 0; }
.values-track li {
  font-family: var(--font-head); font-weight: 700; font-style: italic; text-transform: uppercase;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem); white-space: nowrap;
  display: flex; align-items: center; padding-left: 28px;
}
.values-track li::after {
  /* Schweizerkreuz als Trenner */
  content: ""; width: 22px; height: 22px; margin-left: 28px; border-radius: 3px; flex: none;
  background:
    linear-gradient(#fff, #fff) center / 14px 4px no-repeat,
    linear-gradient(#fff, #fff) center / 4px 14px no-repeat,
    var(--svp-red);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sektionen ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-white { background: #fff; }
.section-white .tile { box-shadow: none; border: 1px solid var(--line); background: var(--bg); }
.section-white .tile-green { background: var(--svp-green); border-color: var(--svp-green); }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.kicker { color: var(--svp-green); font-size: 1rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: var(--svp-green); }
.section h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.section-lead { font-size: 1.12rem; margin-top: 16px; max-width: 42em; }

/* Über mich */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.about-text { padding: clamp(26px, 3.5vw, 40px); }
.about-text .big { font-family: var(--font-head); font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.3; font-weight: 700; color: var(--heading); }
.about-text p:last-child { margin-bottom: 0; }

.cv { display: grid; gap: var(--gap); }
.cv-card { padding: 24px 26px; transition: box-shadow .25s ease, transform .25s ease; }
.cv-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.cv-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; margin-bottom: 12px; }
.icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--svp-green); color: #fff; flex: none; }
.icon svg { width: 20px; height: 20px; }
.cv-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.cv-card li { position: relative; padding-left: 22px; font-size: .97rem; line-height: 1.5; }
.cv-card li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 12px; height: 12px;
  background: var(--svp-green-light);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* Politik */
.politik-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.politik-intro .section-head { margin-bottom: 0; }
.politik-intro p:last-child { margin-bottom: 0; }
.sub-head { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 20px; }

.goals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: goal; }
.goal { counter-increment: goal; position: relative; padding: 24px 22px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.goal:not(.goal-quote):hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--svp-green) !important; }
.goal:not(.goal-quote)::after {
  content: counter(goal, decimal-leading-zero);
  position: absolute; top: 20px; right: 22px;
  font-family: var(--font-head); font-weight: 700; font-style: italic; font-size: 1.3rem; color: #d6d6d6;
}
.goal-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--svp-green); color: #fff; margin-bottom: 16px; }
.goal-icon svg { width: 24px; height: 24px; }
.goal h4 { font-size: 1.3rem; margin-bottom: 8px; }
.goal p { margin: 0; font-size: .95rem; line-height: 1.55; }
.goal-quote { display: flex; flex-direction: column; justify-content: center; }
.goal-quote p { font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 1.45rem; line-height: 1.2; color: #fff; margin-bottom: 12px; }
.goal-quote cite { font-style: normal; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; color: var(--svp-yellow); letter-spacing: .04em; }

/* Kantonsrat */
.kr-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--gap); }
.kr-card { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.kr-card h3 { font-size: 1.7rem; }
.kr-card p { margin: 0; }
.kr-feature h3 { font-size: 2.2rem; }
.kr-feature p { color: rgb(255 255 255 / .92); }
.kr-subs { margin-top: auto; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / .3); }
.tag { font-size: .85rem !important; color: var(--svp-green) !important; margin: 0 0 2px !important; }
.tile-green .tag { color: var(--svp-yellow) !important; }
.pills { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 6px 14px; border-radius: 25px; background: var(--green-tint); color: var(--svp-green-dark); font-size: .9rem; font-weight: 500; }
.tile-green .pills li { background: #fff; color: var(--svp-green); }

/* Aktuell – Datumsblock wie Agenda auf svp.ch */
.news { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.news-card { display: grid; grid-template-columns: 92px 1fr; gap: 22px; padding: 24px; align-items: start; transition: box-shadow .25s ease; }
.news-card:hover { box-shadow: var(--shadow-hover); }
.date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--svp-green); color: #fff; border-radius: var(--radius);
  padding: 14px 6px; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: .82rem; line-height: 1.2;
}
.date span { font-size: 2rem; line-height: 1; margin-bottom: 4px; }
.news-card h3 { font-size: 1.45rem; margin: 2px 0 10px; }
.news-card p:last-child { margin-bottom: 0; }
details summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--svp-green);
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 1.25em; line-height: 1; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details[open] summary { margin-bottom: 10px; }

/* Social Wall */
.social-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(28px, 4vw, 44px); }
.social-head .section-head { margin-bottom: 0; }
.follow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social-wall { padding: clamp(20px, 3vw, 32px); min-height: 320px; }
.social-consent { max-width: 620px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.social-consent h3 { font-size: 1.6rem; margin: 14px 0 8px; }
.social-consent p { font-size: .95rem; margin-bottom: 20px; }
.social-consent a { color: var(--svp-green); }
.icon-lg { width: 64px; height: 64px; }
.icon-lg svg { width: 30px; height: 30px; }
.remember { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.remember input { width: 18px; height: 18px; accent-color: var(--svp-green); }
.social-wall.loaded { min-height: 0; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(32px, 5vw, 60px); position: relative; overflow: hidden; }
.contact-grid::after {
  content: ""; position: absolute; left: -140px; bottom: -180px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgb(255 237 0 / .28), rgb(255 237 0 / 0) 70%); pointer-events: none;
}
.contact-grid > * { position: relative; z-index: 1; }
.contact-grid .lead { color: rgb(255 255 255 / .92); font-size: 1.12rem; margin: 16px 0 26px; }
.contact-card { background: #fff; color: var(--text); border-radius: var(--radius); padding: 30px; }
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid var(--svp-green); margin-bottom: 16px; }
.contact-card address { font-style: normal; font-size: 1.05rem; line-height: 1.6; }
.contact-card strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--heading); }
.social { list-style: none; padding: 0; margin: 20px 0 0; display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--svp-green); color: #fff; transition: background .2s ease, transform .2s ease; }
.social a:hover { background: var(--svp-green-dark); transform: translateY(-2px); }

/* Footer */
.site-footer { background: var(--heading); color: #b9bdc1; font-size: .92rem; padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer-inner img { width: 64px; background: #fff; border-radius: 6px; padding: 4px 6px; }
.footer-inner p { margin: 0; flex: 1 1 auto; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-inner a { color: #fff; text-decoration: none; }
.footer-inner a:hover { color: var(--svp-yellow); }

/* Rechtliches */
.legal { padding: clamp(24px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.legal .tile { max-width: 860px; padding: clamp(28px, 5vw, 56px); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 4px 0 28px; }
.legal h2 { font-size: 1.6rem; margin: 40px 0 10px; }
.legal address { font-style: normal; line-height: 1.7; }
.legal a { color: var(--svp-green); }

/* ---------- Animationen ---------- */
.rise { animation: rise .7s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .goals { grid-template-columns: repeat(2, 1fr); }
  .kr-grid { grid-template-columns: 1fr 1fr; }
  .kr-feature { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .news { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 88px; }
  .site-header { padding-top: 12px; }
  .header-inner { padding: 10px 14px 10px 18px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-hover);
    padding: 8px 20px 20px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }

  .hero-grid, .about-grid, .politik-intro, .contact-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; min-height: 0; aspect-ratio: 4 / 4.2; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-logo { width: 64px; }
  .brand-text { font-size: 1.15rem; padding-left: 12px; }
  .brand { gap: 12px; }
  .goals { grid-template-columns: 1fr; }
  .kr-grid { grid-template-columns: 1fr; }
  .fact { padding: 16px 18px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .news-card { grid-template-columns: 1fr; gap: 14px; }
  .date { flex-direction: row; gap: 8px; justify-self: start; padding: 8px 14px; }
  .date span { font-size: 1.2rem; margin: 0; }
  .contact-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
