/*
Theme Name: Winterzauber Advent
Theme URI: https://example.com/
Author: Klickstube
Description: Ein winterliches WordPress-Theme in Rot, Grün, Creme und Gold – ideal für Adventskalender, Weihnachtsseiten und persönliche Familienprojekte.
Version: 1.1.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: winterzauber-advent
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root{
  --wza-red:#B3262D;
  --wza-red-dark:#7F1D1D;
  --wza-green:#1F5A3D;
  --wza-green-dark:#123524;
  --wza-cream:#EFE7DA;
  --wza-white:#FFFDF9;
  --wza-ice:#DDEAF3;
  --wza-gold:#D4A63A;
  --wza-text:#2E2A26;
  --wza-card:#E7E0D2;
  --wza-shadow:0 16px 42px rgba(20,36,28,.16);
  --wza-radius:22px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--wza-text);
  background:
    radial-gradient(circle at 8% 10%, rgba(255,255,255,.9) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 14%, rgba(255,255,255,.75) 0 2px, transparent 3px),
    radial-gradient(circle at 65% 78%, rgba(255,255,255,.7) 0 2px, transparent 3px),
    linear-gradient(180deg,#f5efe5 0%,#eef4f0 50%,#f8f6f2 100%);
  background-size:auto,auto,auto,100% 100%;
  background-repeat:no-repeat;
  font-family:Inter,Segoe UI,Arial,sans-serif;
  line-height:1.65;
}

a{color:var(--wza-green);text-decoration-thickness:.08em;text-underline-offset:.16em}
a:hover{color:var(--wza-red)}
img{max-width:100%;height:auto}

.site-shell{min-height:100vh;display:flex;flex-direction:column}
.site-main{
  flex:1;
  width:min(1180px,calc(100% - 32px));
  margin:0 auto;
  padding:36px 0 56px;
  position:relative;
  z-index:1;
}

.site-header{
  position:sticky;top:0;z-index:100;
  backdrop-filter:saturate(140%) blur(10px);
  background:rgba(18,53,36,.94);
  border-bottom:1px solid rgba(255,255,255,.12);
  box-shadow:0 8px 26px rgba(0,0,0,.08);
}
.header-inner{
  width:min(1180px,calc(100% - 32px));
  margin:0 auto;min-height:74px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
}
.site-branding{display:flex;align-items:center;gap:12px;min-width:0}
.custom-logo{max-height:52px;width:auto}
.site-title{
  margin:0;font-family:Georgia,"Times New Roman",serif;font-size:1.35rem;
  font-weight:800;letter-spacing:.02em;
}
.site-title a{color:#fff;text-decoration:none}
.site-description{margin:2px 0 0;color:rgba(255,255,255,.72);font-size:.86rem}
.site-title-wrap{min-width:0}

.main-navigation ul{display:flex;gap:8px;list-style:none;margin:0;padding:0}
.main-navigation a{
  display:block;padding:9px 12px;border-radius:10px;color:#fff;text-decoration:none;font-weight:700
}
.main-navigation a:hover,.main-navigation .current-menu-item>a{
  background:rgba(255,255,255,.12);color:#fff
}
.menu-toggle{display:none;border:0;background:transparent;color:#fff;font-size:1.5rem;cursor:pointer}

.hero{
  position:relative;overflow:hidden;
  margin:0 0 34px;padding:54px clamp(24px,6vw,68px);
  border-radius:30px;
  background:
    linear-gradient(135deg,rgba(127,29,29,.95),rgba(179,38,45,.9) 45%,rgba(31,90,61,.95));
  color:#fff;box-shadow:var(--wza-shadow);
}
.hero::before,.hero::after{
  content:"";position:absolute;pointer-events:none;border-radius:50%;
  background:rgba(255,255,255,.12);filter:blur(1px)
}
.hero::before{width:220px;height:220px;right:-70px;top:-90px}
.hero::after{width:160px;height:160px;left:-70px;bottom:-80px}
.hero-kicker{
  display:inline-block;margin:0 0 10px;padding:6px 10px;
  border:1px solid rgba(255,255,255,.35);border-radius:999px;
  font-weight:800;letter-spacing:.08em;text-transform:uppercase;font-size:.76rem
}
.hero h1{margin:.1em 0 .25em;font:800 clamp(2.2rem,5vw,4.7rem)/1.02 Georgia,serif}
.hero p{max-width:760px;font-size:clamp(1rem,1.8vw,1.2rem);color:rgba(255,255,255,.9)}
.hero .button{margin-top:12px}

.button,.wp-block-button__link,input[type=submit],button:not(.menu-toggle){
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:0;border-radius:12px;padding:11px 17px;
  background:var(--wza-green);color:#fff;text-decoration:none;font-weight:800;
  box-shadow:0 7px 18px rgba(18,53,36,.18);
  transition:transform .18s ease,background .18s ease,box-shadow .18s ease;
  cursor:pointer
}
.button:hover,.wp-block-button__link:hover,input[type=submit]:hover,button:not(.menu-toggle):hover{
  transform:translateY(-1px);background:var(--wza-green-dark);color:#fff
}
.button.red{background:var(--wza-red)}
.button.red:hover{background:var(--wza-red-dark)}

.content-card,.entry-card{
  position:relative;
  background:rgba(231,224,210,.90);
  border:1px solid rgba(212,166,58,.34);
  border-radius:var(--wza-radius);
  box-shadow:
    0 18px 44px rgba(20,36,28,.18),
    inset 0 1px 0 rgba(255,255,255,.58);
  padding:clamp(22px,4vw,42px);
  backdrop-filter:blur(9px) saturate(112%);
}
.entry-card+.entry-card{margin-top:24px}
.entry-title{font-family:Georgia,serif;color:var(--wza-red-dark);line-height:1.15}
.entry-title a{color:inherit;text-decoration:none}
.entry-meta{color:#6f756f;font-size:.9rem}
.entry-content>*:first-child{margin-top:0}
.entry-content>*:last-child{margin-bottom:0}

.wza-divider{
  height:10px;margin:28px 0;border:0;
  background:
    radial-gradient(circle at 5px 5px,var(--wza-red) 0 3px,transparent 3.5px) repeat-x;
  background-size:18px 10px;opacity:.38
}

blockquote{
  margin:1.5em 0;padding:18px 22px;
  border-left:5px solid var(--wza-gold);
  background:rgba(255,249,238,.88);border-radius:0 14px 14px 0
}

table{width:100%;border-collapse:collapse;background:rgba(255,255,255,.88);border-radius:12px;overflow:hidden}
th,td{padding:12px 14px;border-bottom:1px solid #e8e3da;text-align:left}
th{background:var(--wza-green);color:#fff}

input,textarea,select{
  width:100%;border:1px solid #cfc7bb;border-radius:10px;padding:10px 12px;
  background:#fff;color:var(--wza-text)
}
input:focus,textarea:focus,select:focus{outline:3px solid rgba(212,166,58,.25);border-color:var(--wza-gold)}

.site-footer{
  margin-top:auto;background:rgba(18,53,36,.95);color:rgba(255,255,255,.8);
  border-top:5px solid var(--wza-red)
}
.footer-inner{
  width:min(1180px,calc(100% - 32px));margin:0 auto;padding:26px 0;text-align:center
}
.site-footer a{color:#fff}

/* WordPress alignment helpers */
.alignwide{width:min(1280px,calc(100vw - 32px));max-width:none;margin-left:50%;transform:translateX(-50%)}
.alignfull{width:100vw;max-width:none;margin-left:50%;transform:translateX(-50%)}

/* Adventskalender-Plugin-Kompatibilität / Winterzauber */
.advent-calendar-theme-winterzauber{
  background:linear-gradient(180deg,var(--wza-cream),var(--wza-white));
  color:var(--wza-text);border-radius:18px;box-shadow:var(--wza-shadow);overflow:hidden;position:relative
}
.advent-door{
  border:2px solid rgba(255,255,255,.7);border-radius:12px;
  background:rgba(255,255,255,.14)!important;
  backdrop-filter:blur(4px);
  box-shadow:0 6px 14px rgba(0,0,0,.18);
  transition:transform .25s ease,box-shadow .25s ease,background .25s ease;
  position:relative;overflow:hidden
}
.advent-door:hover{transform:translateY(-3px) scale(1.02);box-shadow:0 10px 18px rgba(0,0,0,.2)}
.advent-door-number{color:var(--wza-gold);font-weight:800;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.advent-popup{
  background:linear-gradient(180deg,#fffdf9,#f6efe3);
  border:4px solid var(--wza-red);border-radius:18px;
  box-shadow:0 16px 40px rgba(0,0,0,.22);color:var(--wza-text)
}
.advent-popup-image-frame{
  background:var(--wza-white);border:3px solid var(--wza-green);border-radius:14px;
  padding:8px;box-shadow:inset 0 0 0 1px rgba(212,166,58,.35)
}
.advent-popup-image-frame img{width:100%;height:auto;object-fit:contain;border-radius:10px;display:block}
.advent-popup-title{color:var(--wza-red-dark);font-weight:800;line-height:1.25;overflow-wrap:anywhere}
.advent-popup-text{color:var(--wza-text);line-height:1.55;overflow-wrap:anywhere;white-space:normal}
.advent-btn{background:var(--wza-green)!important;color:#fff!important;border-radius:10px!important}
.advent-btn.secondary{background:var(--wza-red)!important}

/* Kleine winterliche Deko */
.wza-snowline{
  height:18px;margin-bottom:-1px;
  background:radial-gradient(circle at 10px 9px,#fff 0 9px,transparent 9.5px) repeat-x;
  background-size:22px 18px
}

@media (max-width:760px){
  .menu-toggle{display:block}
  .main-navigation{
    display:none;position:absolute;left:16px;right:16px;top:68px;
    background:var(--wza-green-dark);border-radius:14px;padding:10px;
    box-shadow:0 18px 38px rgba(0,0,0,.22)
  }
  .main-navigation.is-open{display:block}
  .main-navigation ul{display:block}
  .main-navigation a{padding:11px 12px}
  .site-description{display:none}
  .site-main{width:min(100% - 20px,1180px);padding-top:22px}
  .hero{padding:36px 22px;border-radius:22px}
  .content-card,.entry-card{padding:22px}
}
