:root{
  --bg: #f4f7f4;
  --card: #ffffff;
  --text: #142016;
  --muted: #5b6b5f;
  --green-900: #0b2a16;
  --green-800: #0f3a1f;
  --green-700: #145029;
  --green-600: #1a6a35;
  --accent: #1a6a35;
  --accent-2: #2f8a4b;
  --border: #e3ebe5;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --shadow-soft: 0 12px 28px rgba(0,0,0,.10);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:
    linear-gradient(rgba(248,250,248,.63), rgba(248,250,248,.63)),
    url("/assets/bg/verein.jpg");
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
}

a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}

.container{
  width:min(1100px, 92vw);
  margin:0 auto;
  padding:24px 0 56px;
}

.topbar{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter:saturate(140%) blur(10px);
  background:rgba(244,247,244,.85);
  border-bottom:1px solid var(--border);
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}

.brand-logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  width:83px;
  height:83px;
}

.brand-copy{
  min-width:0;
}

.logo{
  display:block;
  width:83px;
  height:83px;
  object-fit:contain;
  filter:drop-shadow(0 8px 18px rgba(11,42,22,.18));
}

.brand h1{
  margin:0;
  font-size:17px;
  letter-spacing:.2px;
  line-height:1.2;
  overflow-wrap:anywhere;
}

.brand .sub{
  margin-top:4px;
  font-size:13px;
  color:var(--muted);
}

.nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(255,255,255,.7);
  color:var(--text);
  font-weight:600;
}

.pill:hover{
  text-decoration:none;
  border-color:#cfe0d3;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

.pill.primary{
  border-color:transparent;
  background:linear-gradient(135deg, var(--green-700), var(--green-900));
  color:#fff;
}

.pill.primary:hover{
  box-shadow:0 12px 24px rgba(11,42,22,.22);
}

.hero{
  padding:22px 0 8px;
}

.hero h2{
  margin:0;
  font-size:28px;
  letter-spacing:.2px;
}

.hero p{
  margin:8px 0 0;
  max-width:70ch;
  color:var(--muted);
}

.hero-copy{
  display:inline-block;
  max-width:76ch;
  padding:14px 18px;
  border:1px solid rgba(227,235,229,.9);
  border-radius:18px;
  background:rgba(248,250,248,.82);
  box-shadow:var(--shadow-soft);
  backdrop-filter:blur(10px) saturate(140%);
}

.hero-copy h2{
  text-shadow:0 2px 14px rgba(0,0,0,.18);
}

.hero-copy p{
  text-shadow:0 2px 14px rgba(0,0,0,.14);
}

.grid{
  display:grid;
  grid-template-columns:1.4fr .9fr;
  gap:16px;
  margin-top:18px;
}

@media (max-width: 900px){
  .grid{grid-template-columns:1fr}
}

@media (max-width: 700px){
  .topbar{
    position:relative;
    top:auto;
  }

  .topbar .container{
    padding-top:16px;
    padding-bottom:16px;
  }

  .header{
    flex-direction:column;
    align-items:stretch;
    gap:14px;
  }

  .brand{
    align-items:flex-start;
    gap:12px;
  }

  .brand-logo{
    width:64px;
    height:64px;
  }

  .logo{
    width:64px;
    height:64px;
  }

  .brand h1{
    font-size:16px;
  }

  .brand .sub{
    font-size:12px;
    line-height:1.45;
  }

  .nav{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:8px;
    width:100%;
  }

  .pill{
    justify-content:center;
    min-height:46px;
    padding:10px;
    font-size:14px;
  }

  .subnavwrap{
    margin-top:10px;
  }

  .subnavcard{
    padding:8px;
  }

  .subnav{
    flex-wrap:nowrap;
    gap:8px;
    overflow-x:auto;
    overflow-y:hidden;
    padding-bottom:4px;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;
  }

  .subpill{
    flex:0 0 auto;
    min-height:44px;
    padding:10px 12px;
    scroll-snap-align:start;
  }

  .subnav::after{
    content:"";
    flex:0 0 2px;
  }

  .hero{
    padding-top:16px;
  }

  .desktop-only{
    display:none;
  }

  .mobile-only{
    display:grid;
    gap:12px;
  }

  .competition-item{
    flex-direction:column;
    align-items:stretch;
  }

  .competition-open-btn{
    width:100%;
    min-height:44px;
  }
}

.card{
  padding:18px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--card);
  box-shadow:var(--shadow);
}

.card h3{
  margin:0 0 10px;
  font-size:16px;
}

.meta{
  font-size:12px;
  color:var(--muted);
}

hr.sep{
  margin:14px 0;
  border:0;
  border-top:1px solid var(--border);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  color:var(--text);
  font-weight:700;
  cursor:pointer;
}

.btn:hover{
  text-decoration:none;
  box-shadow:0 8px 18px rgba(0,0,0,.07);
}

.btn.primary{
  border-color:transparent;
  background:linear-gradient(135deg, var(--accent), var(--green-900));
  color:#fff;
}

.table{
  width:100%;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:14px;
  border-collapse:separate;
  border-spacing:0;
}

.table th,
.table td{
  padding:10px 12px;
  border-bottom:1px solid var(--border);
  text-align:left;
}

.table th{
  background:rgba(26,106,53,.06);
  color:var(--muted);
  font-size:12px;
  letter-spacing:.3px;
  text-transform:uppercase;
}

.table tr:last-child td{border-bottom:0}

.subnavwrap{margin-top:12px}

.subnavcard{
  padding:10px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:rgba(255,255,255,.75);
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.subnav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.subpill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  color:var(--text);
  font-weight:750;
  white-space:nowrap;
  text-decoration:none;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

.subpill:hover{
  transform:translateY(-1px);
  text-decoration:none;
  box-shadow:0 12px 28px rgba(0,0,0,.10);
}

.subpill.active{
  border-color:transparent;
  background:linear-gradient(135deg, var(--green-700), var(--green-900));
  color:#fff;
}

.competition-layout{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:14px;
  align-items:start;
}

.desktop-only{
  display:block;
}

.mobile-only{
  display:none;
}

.competition-mobile-switch.mobile-only{
  display:none;
}

.competition-mobile-switch{
  gap:10px;
  margin-bottom:14px;
}

.competition-mobile-button{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  color:var(--text);
  font-weight:800;
  text-decoration:none;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

.competition-mobile-button.active{
  border-color:transparent;
  background:linear-gradient(135deg, var(--green-700), var(--green-900));
  color:#fff;
}

.competition-side{
  padding:0;
  overflow:hidden;
}

.competition-side-title{
  padding:14px 14px 10px;
  font-weight:800;
}

.competition-side-link{
  display:block;
  padding:12px 14px;
  border-top:1px solid rgba(0,0,0,.06);
  color:var(--text);
  text-decoration:none;
}

.competition-side-link.active{
  background:rgba(0,0,0,.03);
  font-weight:700;
}

.competition-active-card{
  min-width:0;
}

.competition-intro{
  font-size:14px;
  line-height:1.6;
}

.competition-items{
  display:grid;
  gap:12px;
  margin-top:14px;
}

.competition-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0;
  padding:14px;
}

.competition-item-title{
  font-weight:800;
}

.competition-open-btn{
  flex:0 0 auto;
}

.competition-note{
  padding:0 4px;
}

@media (min-width: 701px){
  .competition-side-link:hover{
    background:rgba(0,0,0,.03);
    text-decoration:none;
  }
}

@media (max-width: 900px){
  .competition-mobile-switch.mobile-only{
    display:grid;
    gap:12px;
  }

  .competition-layout{
    grid-template-columns:1fr;
  }

  .competition-layout .desktop-only{
    display:none;
  }

  .competition-active-card{
    width:100%;
  }
}

.downloads-list{
  display:grid;
  gap:12px;
}

.download-block{
  margin-bottom:12px;
}

.download-block.nested{
  margin-top:10px;
  margin-bottom:0;
}

.download-block-title{
  margin-bottom:8px;
  font-size:18px;
  font-weight:900;
}

.download-files{
  display:grid;
  gap:10px;
}

.download-file{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0;
  padding:14px;
}

.download-file-copy{
  min-width:0;
}

.download-file-title{
  font-weight:800;
}

.download-file-desc{
  margin-top:4px;
}

.download-file-meta{
  margin-top:6px;
}

.download-file-btn{
  flex:0 0 auto;
}

.download-children{
  display:grid;
  gap:10px;
  margin-top:10px;
}

.mitteilungen-layout{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:18px;
  margin-top:18px;
}

@media (max-width: 900px){
  .mitteilungen-layout{grid-template-columns:1fr}
}

@media (max-width: 700px){
  .download-block{
    padding:14px;
  }

  .download-file{
    flex-direction:column;
    align-items:stretch;
    width:100%;
  }

  .download-file-btn{
    width:100%;
    min-height:44px;
  }
}

.catbox,
.catcard{
  padding:0;
  overflow:hidden;
}

.catbox .head,
.catcard .cathead{
  padding:12px 14px;
  border-bottom:1px solid var(--border);
  font-weight:800;
}

.catlist{
  margin:0;
  padding:8px;
  list-style:none;
}

.catlist li{margin:0}

.catlink{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  border-radius:12px;
  color:var(--text);
  font-weight:700;
  text-decoration:none;
}

.catlink:hover{
  background:rgba(26,106,53,.07);
  text-decoration:none;
}

.catlink.active{
  background:linear-gradient(135deg, var(--green-700), var(--green-900));
  color:#fff;
}

.subcat{
  margin:6px 0 10px 12px;
  padding-left:8px;
  border-left:2px solid rgba(26,106,53,.18);
}

.subcat a{
  display:block;
  padding:8px 10px;
  border-radius:10px;
  color:var(--text);
  font-weight:650;
  text-decoration:none;
}

.subcat a:hover{
  background:rgba(26,106,53,.07);
}

.subcat a.active{
  border:1px solid #cfe0d3;
  background:rgba(26,106,53,.12);
}

.catmenu{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:10px;
}

.catitem{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:11px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  color:var(--text);
  font-weight:800;
  text-decoration:none;
}

.catitem:hover{
  text-decoration:none;
  box-shadow:0 8px 18px rgba(0,0,0,.08);
}

.catitem.active{
  border-color:transparent;
  background:linear-gradient(135deg, var(--green-700), var(--green-900));
  color:#fff;
}

.subcatwrap{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin:2px 0 10px 18px;
}

.subcatlink{
  display:flex;
  padding:9px 10px;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(255,255,255,.8);
  color:var(--text);
  font-weight:700;
  text-decoration:none;
}

.subcatlink:hover{
  text-decoration:none;
  box-shadow:0 8px 18px rgba(0,0,0,.06);
}

.subcatlink.active{
  border-color:#cfe0d3;
  background:rgba(26,106,53,.12);
}

.postlist{margin-top:6px}

.postrow{
  padding:14px 0;
  border-top:1px solid var(--border);
}

.postrow:first-child{
  padding-top:0;
  border-top:0;
}

.postmeta{
  margin-bottom:3px;
  color:var(--muted);
  font-size:12px;
}

.posttitle a{
  font-size:16px;
  font-weight:900;
  text-decoration:none;
}

.posttitle a:hover{text-decoration:underline}

.signup-page h2{
  margin-bottom:8px;
  font-size:32px;
  line-height:1.15;
}

.signup-page h3{
  margin-top:16px;
  font-size:20px;
  line-height:1.2;
}

.signup-page .meta{
  font-size:15px;
  line-height:1.5;
}

.signup-page .card{
  padding:18px;
}

.signup-page label.meta{
  display:block;
  margin-bottom:6px;
  font-size:14px;
  font-weight:700;
}

.signup-page .input,
.signup-page select.input,
.signup-page textarea.input{
  padding:12px;
  font-size:16px;
}

.signup-page .btn{
  padding:12px 14px;
  font-size:16px;
}

.signup-page .pill{
  padding:8px 10px;
  font-size:14px;
}

.signup-page .sep{
  margin:14px 0;
}

.signup-page .card form{
  margin-top:10px;
}

.footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:26px;
  padding:10px 14px;
  border:1px solid rgba(227,235,229,.9);
  border-radius:14px;
  background:rgba(248,250,248,.80);
  color:var(--muted);
  font-size:12px;
  box-shadow:0 10px 24px rgba(0,0,0,.10);
  backdrop-filter:blur(10px) saturate(140%);
}

.footer a{
  color:var(--green-800);
  font-weight:700;
}

.error-shell{
  min-height:100vh;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 20px;
}

.error-page{
  position:relative;
  min-height:100vh;
  background:
    linear-gradient(rgba(8,24,14,.46), rgba(8,24,14,.34)),
    linear-gradient(rgba(244,247,244,.52), rgba(244,247,244,.52)),
    url("/assets/bg/verein.jpg");
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
}

.error-page::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.40), transparent 28%),
    linear-gradient(135deg, rgba(11,42,22,.18), rgba(11,42,22,.06));
  pointer-events:none;
}

.error-card{
  position:relative;
  width:min(760px, 100%);
  padding:34px;
  border:1px solid rgba(227,235,229,.98);
  border-radius:28px;
  background:rgba(248,250,248,.93);
  box-shadow:0 24px 48px rgba(0,0,0,.16);
  backdrop-filter:blur(14px) saturate(145%);
}

.error-kicker{
  margin-bottom:10px;
  color:var(--green-800);
  font-size:13px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.error-code{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(20,80,41,.10);
  color:var(--green-800);
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.error-card h1{
  margin:16px 0 10px;
  font-size:clamp(30px, 4vw, 46px);
  line-height:1.05;
}

.error-card p{
  margin:0;
  max-width:56ch;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
}

.error-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}

@media (max-width: 700px){
  .error-card{
    padding:24px 20px;
    border-radius:22px;
  }

  .error-card h1{
    font-size:clamp(28px, 9vw, 38px);
  }

  .error-actions{
    flex-direction:column;
  }

  .error-actions .btn{
    width:100%;
  }
}
