/*
Theme Name: Wuffel & Freunde
Theme URI: https://wuffelundfreunde.ch
Author: Wuffel & Freunde
Description: Modernes, verspieltes Custom-Theme für die Wuffel & Freunde Community.
Version: 1.1
Requires PHP: 7.4
Text Domain: wuffel-modern
*/

/* ---------- Design tokens ---------- */
:root{
  --bg: #fdfaf6;
  --bg-soft: #f6f1fc;
  --card: #ffffff;
  --card-border: #ece4fa;
  --text: #241b35;
  --text-muted: #6c6280;
  --text-dim: #948aa6;
  --accent-1: #8b5cf6;
  --accent-2: #ec4899;
  --accent-3: #fb923c;
  --mint: #0ea975;
  --mint-soft: #e3f9f0;
  --gradient: linear-gradient(120deg, var(--accent-1) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  --gradient-soft: linear-gradient(120deg, rgba(139,92,246,.14), rgba(236,72,153,.11) 55%, rgba(251,146,60,.11));
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 30px 70px -26px rgba(107,63,180,.28);
  --shadow-md: 0 16px 38px -18px rgba(107,63,180,.24);
  --container: 1180px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:
    radial-gradient(1000px 560px at 10% -8%, rgba(139,92,246,.14), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(236,72,153,.12), transparent 55%),
    radial-gradient(800px 500px at 50% 110%, rgba(251,146,60,.10), transparent 55%),
    var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family:var(--font-display); line-height:1.12; margin:0 0 .5em; font-weight:600; letter-spacing:-.02em; }
p{ margin:0 0 1.1em; color:var(--text-muted); }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; }

.container{ max-width:var(--container); margin:0 auto; padding:0 28px; position:relative; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-display); font-size:13px; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase; color:var(--mint);
  margin-bottom:18px;
}
.eyebrow .paw{ width:16px; height:16px; opacity:.9; }
.gradient-text{
  background:var(--gradient);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* ---------- Playful paw-print confetti background ---------- */
.paw-field{ position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0; }
.paw-field svg{ position:absolute; opacity:.16; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 28px; border-radius:999px; font-weight:700; font-size:15px;
  border:1px solid transparent; cursor:pointer; transition:transform .25s ease, box-shadow .25s ease, opacity .25s ease;
  white-space:nowrap;
}
.btn-primary{ background:var(--gradient); color:#fff; box-shadow:0 14px 30px -10px rgba(139,92,246,.5); }
.btn-primary:hover{ transform:translateY(-2px) rotate(-.5deg); box-shadow:0 20px 40px -12px rgba(139,92,246,.6); }
.btn-ghost{ background:#fff; border-color:var(--card-border); color:var(--text); box-shadow:0 6px 18px -12px rgba(107,63,180,.2); }
.btn-ghost:hover{ background:var(--bg-soft); transform:translateY(-2px) rotate(.5deg); }
.btn-sm{ padding:10px 20px; font-size:14px; }

/* ---------- Nav ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(253,250,246,.78);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--card-border);
}
.nav-row{ display:flex; align-items:center; justify-content:space-between; height:78px; }
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:700; font-size:19px; color:var(--text); }
.brand .logo-mark{ height:44px; width:auto; display:block; flex:none; }
.site-footer .brand .logo-mark{ height:38px; }
@media (max-width:560px){ .brand .logo-mark{ height:36px; } .brand{ font-size:17px; } }
.nav-links{ display:flex; align-items:center; gap:2px; }
.nav-links > li{ position:relative; }
.nav-links a.top-link{
  display:block; padding:10px 16px; border-radius:999px; font-size:14.5px; font-weight:600;
  color:var(--text-muted); transition:color .2s ease, background .2s ease;
}
.nav-links a.top-link:hover, .nav-links li.has-dropdown:hover a.top-link{ color:var(--text); background:var(--bg-soft); }
.nav-links li.current a.top-link{ color:var(--accent-1); background:var(--bg-soft); }
.nav-cta{ display:flex; align-items:center; gap:10px; }
.dropdown{
  position:absolute; top:100%; left:0; margin-top:6px; min-width:190px;
  background:#fff; border:1px solid var(--card-border); border-radius:var(--radius-md);
  padding:8px; box-shadow:var(--shadow-lg);
  opacity:0; visibility:hidden; transform:translateY(6px); transition:all .2s ease;
}
li.has-dropdown:hover .dropdown{ opacity:1; visibility:visible; transform:translateY(0); }
.dropdown a{ display:block; padding:10px 12px; border-radius:var(--radius-sm); font-size:14px; color:var(--text-muted); }
.dropdown a:hover{ background:var(--bg-soft); color:var(--text); }
.nav-toggle{ display:none; background:#fff; border:1px solid var(--card-border); border-radius:10px; width:44px; height:44px; align-items:center; justify-content:center; color:var(--text); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display:block; width:18px; height:2px; background:currentColor; position:relative; transition:.2s;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }

@media (max-width:940px){
  .nav-links{
    position:fixed; inset:78px 0 0 0; height:calc(100vh - 78px); flex-direction:column; align-items:stretch;
    background:var(--bg); padding:18px; gap:4px; overflow-y:auto;
    transform:translateX(100%); transition:transform .3s ease; border-top:1px solid var(--card-border);
  }
  .nav-links.open{ transform:translateX(0); }
  .nav-links a.top-link{ padding:14px 16px; font-size:16px; }
  .dropdown{ position:static; opacity:1; visibility:visible; transform:none; display:none; margin:2px 0 8px 10px; box-shadow:none; border:none; background:transparent; }
  li.has-dropdown.open .dropdown{ display:block; }
  .nav-toggle{ display:inline-flex; margin-left:auto; }
  .nav-cta{ display:none; }
}

/* ---------- Hero ---------- */
.hero{
  padding:88px 0 60px; position:relative;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cg fill='%238b5cf6' fill-opacity='0.10' transform='translate(26 20) rotate(-16) scale(2)'%3E%3Cpath d='M12 12.1c3.7 0 6.5 2.1 6.5 4.6 0 1.9-1.5 3.1-3.1 3.7-1.1.4-2.3.9-3.4.9s-2.3-.5-3.4-.9c-1.6-.6-3.1-1.8-3.1-3.7 0-2.5 2.8-4.6 6.5-4.6Z'/%3E%3Cellipse cx='4.5' cy='10.2' rx='2.1' ry='2.8' transform='rotate(-24 4.5 10.2)'/%3E%3Cellipse cx='9.2' cy='6.3' rx='2.2' ry='3.1' transform='rotate(-9 9.2 6.3)'/%3E%3Cellipse cx='14.8' cy='6.3' rx='2.2' ry='3.1' transform='rotate(9 14.8 6.3)'/%3E%3Cellipse cx='19.5' cy='10.2' rx='2.1' ry='2.8' transform='rotate(24 19.5 10.2)'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat:repeat; background-position:0 0;
}
.hero-inner{ max-width:760px; position:relative; z-index:1; }
.hero h1{ font-size:clamp(38px,6vw,64px); }
.hero .lede{ font-size:clamp(17px,2vw,19px); color:var(--text-muted); max-width:560px; }
.hero-cta{ display:flex; flex-wrap:wrap; gap:14px; margin-top:32px; }
.hero-stats{ display:flex; gap:36px; margin-top:56px; flex-wrap:wrap; }
.hero-stats .stat b{ display:block; font-family:var(--font-display); font-size:28px; background:var(--gradient); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-stats .stat span{ font-size:13px; color:var(--text-dim); text-transform:uppercase; letter-spacing:.08em; }
.hero-splotch{ position:absolute; top:-4px; right:6px; width:auto; height:175px; opacity:.95; transform:rotate(5deg); z-index:0; pointer-events:none; }
@media (max-width:760px){ .hero-splotch{ height:112px; right:0; top:0; } }

.page-hero{
  padding:64px 0 48px; border-bottom:1px solid var(--card-border); position:relative; overflow:hidden;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cg fill='%23ec4899' fill-opacity='0.09' transform='translate(26 20) rotate(12) scale(2)'%3E%3Cpath d='M12 12.1c3.7 0 6.5 2.1 6.5 4.6 0 1.9-1.5 3.1-3.1 3.7-1.1.4-2.3.9-3.4.9s-2.3-.5-3.4-.9c-1.6-.6-3.1-1.8-3.1-3.7 0-2.5 2.8-4.6 6.5-4.6Z'/%3E%3Cellipse cx='4.5' cy='10.2' rx='2.1' ry='2.8' transform='rotate(-24 4.5 10.2)'/%3E%3Cellipse cx='9.2' cy='6.3' rx='2.2' ry='3.1' transform='rotate(-9 9.2 6.3)'/%3E%3Cellipse cx='14.8' cy='6.3' rx='2.2' ry='3.1' transform='rotate(9 14.8 6.3)'/%3E%3Cellipse cx='19.5' cy='10.2' rx='2.1' ry='2.8' transform='rotate(24 19.5 10.2)'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat:repeat;
}
.page-hero h1{ font-size:clamp(32px,5vw,48px); max-width:720px; }
.page-hero .lede{ max-width:620px; font-size:17px; }

/* ---------- Sections ---------- */
.section{ padding:76px 0; position:relative; }
.section-tight{ padding:46px 0; }
.section-head{ max-width:640px; margin-bottom:46px; }
.section-head h2{ font-size:clamp(28px,4vw,40px); }

/* ---------- Cards / grid ---------- */
.grid{ display:grid; gap:22px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:900px){ .grid-3, .grid-2{ grid-template-columns:1fr; } }

.card{
  background:var(--card);
  border:1px solid var(--card-border); border-radius:var(--radius-lg); padding:30px;
  box-shadow:var(--shadow-md);
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover{ transform:translateY(-5px) rotate(-.3deg); box-shadow:var(--shadow-lg); border-color:#ddccf7; }
.card .icon{
  width:46px; height:46px; border-radius:16px; display:flex; align-items:center; justify-content:center;
  background:var(--gradient-soft); color:var(--accent-1); margin-bottom:18px;
}
.card .icon svg{ width:22px; height:22px; }
.card h3{ font-size:19px; margin-bottom:8px; }
.card p{ margin:0; font-size:14.5px; }
.card a.card-link{ display:inline-flex; align-items:center; gap:6px; margin-top:16px; font-size:14px; font-weight:700; color:var(--mint); }

/* ---------- Article / prose ---------- */
.prose{ max-width:760px; }
.prose p{ font-size:16.5px; color:var(--text-muted); }
.prose h2{ font-size:26px; margin-top:2.2em; color:var(--text); }
.prose h2:first-child{ margin-top:0; }
.pullquote{
  font-family:var(--font-display); font-size:clamp(22px,3vw,30px); line-height:1.35; color:var(--text);
  border-left:4px solid transparent; border-image:var(--gradient) 1; padding:6px 0 6px 26px; margin:0 0 40px;
}

/* ---------- Timeline ---------- */
.timeline{ position:relative; max-width:820px; padding-left:30px; border-left:3px dashed #e2d6f7; }
.timeline-year{ font-family:var(--font-display); font-size:22px; margin:44px 0 18px; position:relative; color:var(--text); }
.timeline-year:first-child{ margin-top:0; }
.timeline-year::before{
  content:"🐾"; position:absolute; left:-46px; top:-2px; width:26px; height:26px; border-radius:50%;
  background:#fff; border:2px solid var(--card-border); box-shadow:var(--shadow-md);
  font-size:13px; display:flex; align-items:center; justify-content:center;
}
.timeline-item{ display:flex; gap:16px; padding:10px 0; border-bottom:1px dashed var(--card-border); font-size:15px; }
.timeline-item:last-child{ border-bottom:none; }
.timeline-item .date{ flex:0 0 64px; color:var(--mint); font-weight:700; font-family:var(--font-display); font-size:14px; }
.timeline-item .text{ color:var(--text-muted); }

/* ---------- Lists ---------- */
.check-list li, .cross-list li{ display:flex; gap:12px; padding:9px 0; font-size:15px; color:var(--text-muted); }
.check-list li .dot{ flex:0 0 22px; height:22px; width:22px; border-radius:50%; background:var(--mint-soft); color:var(--mint); display:flex; align-items:center; justify-content:center; font-size:12px; }
.cross-list li .dot{ flex:0 0 22px; height:22px; width:22px; border-radius:50%; background:#fde5f0; color:var(--accent-2); display:flex; align-items:center; justify-content:center; font-size:12px; }

/* ---------- Team ---------- */
.team-card{ text-align:center; padding:38px 26px; }
.team-avatar{
  width:84px; height:84px; border-radius:50%; margin:0 auto 18px; display:flex; align-items:center; justify-content:center;
  background:var(--gradient); font-family:var(--font-display); font-weight:700; font-size:26px; color:#fff;
}
.team-card h3{ margin-bottom:2px; }
.team-role{ display:block; font-size:13px; color:var(--mint); font-weight:700; margin-bottom:14px; }

/* ---------- Callout / banner ---------- */
.callout{
  border-radius:var(--radius-xl); padding:56px; position:relative; overflow:hidden;
  background:linear-gradient(135deg, rgba(139,92,246,.10), rgba(236,72,153,.08)), var(--card);
  border:1px solid var(--card-border); box-shadow:var(--shadow-md);
}
.callout h2{ font-size:clamp(26px,4vw,36px); max-width:560px; }
.callout .btn-row{ display:flex; gap:14px; margin-top:26px; flex-wrap:wrap; }

/* ---------- Calendar ---------- */
.calendar-wrap{ background:var(--card); border:1px solid var(--card-border); border-radius:var(--radius-lg); padding:8px 22px 22px; box-shadow:var(--shadow-md); }
.calendar-wrap .mc-main{ font-family:var(--font-body); }

/* ---------- Form ---------- */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-grid .full{ grid-column:1/-1; }
@media (max-width:700px){ .form-grid{ grid-template-columns:1fr; } }
label{ display:block; font-size:13px; font-weight:700; color:var(--text-muted); margin-bottom:8px; }
input, select, textarea{
  width:100%; background:var(--bg-soft); border:1px solid var(--card-border); border-radius:var(--radius-sm);
  padding:13px 16px; color:var(--text); font-family:inherit; font-size:15px; transition:border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus{ outline:none; border-color:var(--accent-1); box-shadow:0 0 0 4px rgba(139,92,246,.14); }
textarea{ resize:vertical; min-height:130px; }
.form-note{ font-size:13px; color:var(--text-dim); margin-top:14px; }
.form-success{ background:var(--mint-soft); border:1px solid #a7ead1; color:#0a7a54; padding:16px 20px; border-radius:var(--radius-sm); margin-bottom:26px; font-size:14.5px; }
.form-error{ background:#fde5f0; border:1px solid #f3b6d3; color:#a3195b; padding:16px 20px; border-radius:var(--radius-sm); margin-bottom:26px; font-size:14.5px; }

/* ---------- Contact channels ---------- */
.channel-list{ display:flex; flex-direction:column; gap:14px; }
.channel{ display:flex; align-items:center; gap:14px; padding:16px 18px; border:1px solid var(--card-border); border-radius:var(--radius-md); background:var(--card); box-shadow:var(--shadow-md); transition:transform .2s ease; }
.channel:hover{ transform:translateY(-2px); }
.channel .icon{ width:40px; height:40px; border-radius:14px; background:var(--gradient-soft); color:var(--accent-1); display:flex; align-items:center; justify-content:center; flex:none; }
.channel .icon svg{ width:18px; height:18px; }
.channel b{ display:block; font-size:14.5px; }
.channel span{ font-size:13px; color:var(--text-dim); }

/* ---------- Footer ---------- */
.site-footer{ border-top:1px solid var(--card-border); padding:64px 0 30px; margin-top:40px; position:relative; background:var(--bg-soft); }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; }
@media (max-width:820px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid h4{ font-size:13px; text-transform:uppercase; letter-spacing:.09em; color:var(--text-dim); margin-bottom:16px; }
.footer-grid ul li{ margin-bottom:10px; }
.footer-grid a{ font-size:14.5px; color:var(--text-muted); }
.footer-grid a:hover{ color:var(--accent-1); }
.footer-brand p{ font-size:14px; max-width:280px; }
.footer-bottom{ margin-top:56px; padding-top:26px; border-top:1px solid var(--card-border); display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:13px; color:var(--text-dim); }
.footer-bottom a{ color:var(--text-dim); }
.footer-bottom a:hover{ color:var(--text-muted); }

/* ---------- Termin-Teaser auf der Startseite ---------- */
.upcoming-box{ max-width:560px; margin-bottom:26px; }
.upcoming-box h3{
  font-size:12.5px; text-transform:uppercase; letter-spacing:.1em;
  color:var(--text-dim); margin-bottom:12px;
}

/* ---------- Stammtische (Meet & Bark) ---------- */
.stammtisch{
  display:grid; grid-template-columns:150px 1fr; gap:34px; align-items:start;
  background:var(--card); border:1px solid var(--card-border); border-radius:var(--radius-lg);
  padding:34px; box-shadow:var(--shadow-md); margin-bottom:26px;
}
.stammtisch:last-child{ margin-bottom:0; }
.stammtisch-logo img{
  width:150px; height:150px; object-fit:cover; border-radius:26px;
  border:1px solid var(--card-border); box-shadow:var(--shadow-md);
}
.stammtisch-body h2{ font-size:26px; margin-bottom:10px; }
.stammtisch-body > p{ margin-bottom:22px; }
.stammtisch-events{ border-top:1px dashed var(--card-border); padding-top:18px; }
.stammtisch-events h3{
  font-size:12.5px; text-transform:uppercase; letter-spacing:.1em;
  color:var(--text-dim); margin-bottom:12px;
}
.event-empty{ font-size:14.5px; color:var(--text-dim); margin:0; font-style:italic; }
.event-list ul, .event-list ol{ margin:0; padding:0; list-style:none; }
.event-list li{
  padding:9px 0; border-bottom:1px dashed var(--card-border);
  font-size:15px; color:var(--text-muted);
}
.event-list li:last-child{ border-bottom:none; }
.event-list a{ color:var(--text); font-weight:600; }
.event-list a:hover{ color:var(--accent-1); }
.event-wann{ display:block; color:var(--text); font-weight:600; }
.event-ort{
  display:flex; align-items:center; gap:6px; margin-top:3px;
  font-size:14px; color:var(--text-dim);
}
.event-ort::before{
  content:""; flex:none; width:13px; height:13px; background-color:currentColor;
  -webkit-mask:var(--pin-icon) center/contain no-repeat; mask:var(--pin-icon) center/contain no-repeat;
}
:root{
  --pin-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
@media (max-width:760px){
  .stammtisch{ grid-template-columns:1fr; gap:22px; padding:26px; }
  .stammtisch-logo img{ width:110px; height:110px; }
}

/* ---------- Verschachtelte Regel-Listen ---------- */
.sub-list{ margin:8px 0 2px; padding-left:18px; list-style:disc; }
.sub-list li{ display:list-item; padding:3px 0; font-size:14.5px; color:var(--text-muted); }
.check-list li strong{ color:var(--text); }
.rule-note{
  margin:18px 0 0; padding-top:16px; border-top:1px dashed var(--card-border);
  font-size:14px; color:var(--text-dim);
}

/* ---------- Footer-Variante mit drei Spalten ---------- */
.footer-grid-slim{ grid-template-columns:1.6fr 1fr 1fr; }
@media (max-width:820px){ .footer-grid-slim{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid-slim{ grid-template-columns:1fr; } }

/* ---------- Misc ---------- */
.tag{ display:inline-flex; align-items:center; padding:6px 14px; border-radius:999px; background:var(--bg-soft); border:1px solid var(--card-border); font-size:12.5px; color:var(--text-muted); font-weight:600; }
hr.split{ border:none; border-top:1px solid var(--card-border); margin:56px 0; }

/* ---------- Rechtliches: Footer-Link und Datenschutzseite ---------- */
.footer-legal a{ color:var(--text-dim); text-decoration:underline; text-underline-offset:2px; }
.footer-legal a:hover{ color:var(--accent-1); }
.prose .dsg-platzhalter{
  background:var(--bg-soft); border:1px dashed var(--accent-2); border-radius:var(--radius-sm);
  padding:14px 16px; font-size:14.5px; color:var(--text-muted);
}
.prose .dsg-stand{ font-size:14px; color:var(--text-dim); }
.prose .check-list li, .prose .cross-list li{ font-size:16px; }

/* ---------- Kalender: Kategorie "General" ausblenden ----------
   Das Plugin verbietet das Loeschen der Kategorie mit ID 1 fest im Code
   ("Cannot delete the default category"). Sie hat keine Veranstaltungen
   und soll im Kalender nicht erscheinen. */
.mc-main .category-key li.cat_general,
.my-calendar-navigation .category-key li.cat_general {
  display: none;
}
