
:root{
  --navy:#17345f;
  --navy-2:#0f2748;
  --green:#5ca43a;
  --teal:#2f9ca3;
  --yellow:#f1b63d;
  --cream:#f7f6f1;
  --white:#ffffff;
  --ink:#243142;
  --muted:#687386;
  --line:#e7e9ec;
  --danger-bg:#fff7df;
  --danger-border:#f0cb65;
  --shadow:0 18px 50px rgba(23,52,95,.10);
  --radius:22px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--ink);
  background:var(--cream);
  line-height:1.6;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.layout{
  min-height:100vh;
  display:grid;
  grid-template-columns:290px 1fr;
}

.sidebar{
  position:sticky;
  top:0;
  height:100vh;
  padding:26px 22px;
  background:var(--navy);
  color:white;
  display:flex;
  flex-direction:column;
  gap:24px;
  z-index:10;
}

.logo-box{
  background:white;
  border-radius:20px;
  padding:12px;
  box-shadow:0 12px 28px rgba(0,0,0,.15);
}

.logo-box img{
  width:100%;
  border-radius:12px;
}

.nav{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.nav a{
  padding:12px 14px;
  border-radius:12px;
  font-weight:750;
  color:rgba(255,255,255,.86);
  transition:.18s ease;
}

.nav a:hover,
.nav a.active{
  background:rgba(255,255,255,.12);
  color:white;
  transform:translateX(2px);
}

.sidebar-note{
  margin-top:auto;
  color:rgba(255,255,255,.67);
  font-size:.85rem;
}

.main{
  min-width:0;
}

.mobile-head{
  display:none;
}

.hero{
  position:relative;
  overflow:hidden;
  padding:66px clamp(24px,5vw,72px) 42px;
  background:
    radial-gradient(circle at 92% 10%, rgba(92,164,58,.16), transparent 26%),
    radial-gradient(circle at 72% 44%, rgba(47,156,163,.12), transparent 23%),
    linear-gradient(180deg,#fff 0%,#fbfbf8 100%);
  border-bottom:1px solid var(--line);
}

.hero:after{
  content:"";
  position:absolute;
  width:140px;height:140px;
  border-radius:50%;
  background:rgba(241,182,61,.12);
  right:7%;
  bottom:-68px;
}

.eyebrow{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  background:#edf7ef;
  color:var(--green);
  font-weight:800;
  font-size:.88rem;
  margin-bottom:16px;
}

h1,h2,h3{
  color:var(--navy);
  letter-spacing:-.035em;
}

h1{
  margin:0;
  font-size:clamp(2.5rem,5.7vw,5.1rem);
  line-height:.98;
  max-width:880px;
}

.lead{
  font-size:1.15rem;
  color:var(--muted);
  max-width:860px;
  margin:20px 0 0;
}

.slogan{
  color:var(--green);
  font-weight:850;
  font-size:1.22rem;
  margin-top:14px;
}

.content{
  padding:36px clamp(24px,5vw,72px) 64px;
  max-width:1380px;
}

.notice{
  display:flex;
  gap:12px;
  align-items:flex-start;
  background:var(--danger-bg);
  border:1px solid var(--danger-border);
  border-radius:16px;
  padding:14px 16px;
  margin-bottom:30px;
  box-shadow:0 8px 24px rgba(114,86,12,.05);
}

.notice strong{color:#6d5305}
.notice span{font-size:1.15rem;line-height:1.4}

.section-title{
  margin:0 0 18px;
  font-size:clamp(1.8rem,3vw,2.7rem);
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.grid.two{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

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

.card h3{
  margin:0 0 8px;
  font-size:1.18rem;
}

.card p{
  margin:0;
  color:var(--muted);
}

.icon{
  width:48px;height:48px;
  display:grid;place-items:center;
  border-radius:15px;
  background:#f4f8f3;
  font-size:1.45rem;
  margin-bottom:15px;
}

.event-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.event{
  background:white;
  border:1px solid var(--line);
  border-left:6px solid var(--teal);
  border-radius:16px;
  padding:18px 20px;
  box-shadow:0 10px 28px rgba(23,52,95,.06);
}

.event:nth-child(3n+2){border-left-color:var(--green)}
.event:nth-child(3n){border-left-color:var(--yellow)}

.event .date{
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
  color:var(--teal);
}

.event h3{
  margin:3px 0 0;
  font-size:1.1rem;
}

.event p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:.95rem;
}

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

.role{
  background:white;
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px 20px;
  display:grid;
  grid-template-columns:180px 1fr;
  gap:18px;
  align-items:start;
}

.role strong{
  color:var(--navy);
}

.badge{
  display:inline-block;
  margin-top:6px;
  padding:5px 9px;
  border-radius:999px;
  background:#edf7ef;
  color:var(--green);
  font-size:.8rem;
  font-weight:850;
}

.price{
  font-size:clamp(3rem,7vw,5.8rem);
  line-height:1;
  font-weight:950;
  letter-spacing:-.06em;
  color:var(--navy);
  margin:8px 0 10px;
}

.price small{
  font-size:1rem;
  color:var(--muted);
  letter-spacing:0;
  font-weight:700;
}

.cta{
  margin-top:30px;
  background:linear-gradient(135deg,var(--navy),var(--navy-2));
  color:white;
  border-radius:24px;
  padding:28px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
}

.cta h3{
  color:white;
  margin:0 0 4px;
  font-size:1.4rem;
}

.cta p{
  margin:0;
  color:rgba(255,255,255,.75);
}

.footer{
  padding:24px clamp(24px,5vw,72px) 36px;
  color:var(--muted);
  border-top:1px solid var(--line);
  font-size:.9rem;
}

@media(max-width:960px){
  .layout{display:block}
  .sidebar{display:none}
  .mobile-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    position:sticky;
    top:0;
    z-index:20;
    padding:10px 14px;
    background:rgba(255,255,255,.95);
    backdrop-filter:blur(12px);
    border-bottom:1px solid var(--line);
  }
  .mobile-head img{width:150px}
  .mobile-head select{
    min-width:150px;
    max-width:48vw;
    border:1px solid var(--line);
    border-radius:10px;
    padding:9px 10px;
    background:white;
    color:var(--navy);
    font-weight:750;
  }
  .grid,.grid.two,.event-list{grid-template-columns:1fr}
}

@media(max-width:600px){
  .hero{padding-top:44px}
  .content{padding-top:26px}
  .role{grid-template-columns:1fr;gap:4px}
  .cta{align-items:flex-start;flex-direction:column}
}


.contact-box{
  background:white;
  border:1px solid var(--line);
  border-radius:22px;
  padding:22px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  box-shadow:0 12px 32px rgba(23,52,95,.07);
}

.contact-box h3{
  margin:0 0 4px;
  font-size:1.25rem;
}

.contact-box p{
  margin:0;
  color:var(--muted);
}

.mail-btn{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:12px;
  background:var(--green);
  color:white;
  font-weight:850;
  box-shadow:0 8px 20px rgba(92,164,58,.20);
  transition:.18s ease;
}

.mail-btn:hover{
  transform:translateY(-2px);
  filter:brightness(.97);
}

@media(max-width:600px){
  .contact-box{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* Mitgliederverwaltung */
.form-card,
.members-card,
.simple-card{
  background:white;
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:28px;
}

.form-card{max-width:820px}

.member-form{
  display:grid;
  gap:18px;
}

.member-form label{
  display:grid;
  gap:7px;
  color:var(--navy);
  font-weight:800;
}

.member-form input[type="text"],
.member-form input[type="tel"],
.member-form input[type="password"]{
  width:100%;
  padding:12px 14px;
  border:1px solid #cfd5dd;
  border-radius:12px;
  font:inherit;
  color:var(--ink);
  background:white;
}

.member-form input:focus{
  outline:3px solid rgba(47,156,163,.14);
  border-color:var(--teal);
}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.plz-grid{
  grid-template-columns:160px 1fr;
}

.checkbox-line{
  grid-template-columns:auto 1fr !important;
  align-items:start;
  gap:10px !important;
  font-weight:650 !important;
  color:var(--ink) !important;
}

.checkbox-line input{
  margin-top:5px;
  width:18px;
  height:18px;
}

.privacy-note{
  margin:0;
  color:var(--muted);
  font-size:.9rem;
}

.form-button{
  border:0;
  cursor:pointer;
  width:max-content;
  font:inherit;
}

.success-box,
.error-box{
  padding:14px 16px;
  border-radius:14px;
  margin-bottom:20px;
}

.success-box{
  background:#edf8ef;
  border:1px solid #afd7b7;
  color:#255f31;
}

.error-box{
  background:#fff0f0;
  border:1px solid #e2aaaa;
  color:#8a2222;
}

.simple-page{
  min-height:100vh;
  background:var(--cream);
  padding:40px 20px;
}

.simple-card{
  max-width:560px;
  margin:0 auto;
}

.simple-card h1,
.members-card h1{
  margin-top:0;
  font-size:2rem;
}

.setup-logo{
  width:230px;
  margin:0 auto 20px;
}

.admin-wrap{
  width:min(1500px,100%);
  margin:0 auto;
}

.admin-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:22px;
}

.admin-logo{
  width:230px;
}

.logout-link{
  color:var(--navy);
  font-weight:850;
}

.members-title{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:end;
  margin-bottom:18px;
}

.members-title p{
  margin:0;
  color:var(--muted);
}

.table-wrap{
  overflow:auto;
}

.members-table{
  width:100%;
  border-collapse:collapse;
  min-width:1000px;
}

.members-table th,
.members-table td{
  text-align:left;
  padding:12px 11px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}

.members-table th{
  color:var(--navy);
  background:#f7f8fa;
  font-size:.88rem;
}

.members-table tbody tr:hover{
  background:#fbfcfd;
}

@media(max-width:600px){
  .form-grid,
  .plz-grid{
    grid-template-columns:1fr;
  }

  .form-button{
    width:100%;
  }

  .simple-page{
    padding:20px 12px;
  }

  .admin-logo{
    width:180px;
  }
}


.admin-entry{
  display:block;
  text-decoration:none;
  transition:.18s ease;
}

.admin-entry:hover{
  color:white;
  transform:translateY(-1px);
}

.admin-actions{
  display:flex;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
}

.admin-add-form{
  max-width:760px;
  margin:18px 0 34px;
}

.admin-list-title{
  margin-top:34px;
}

.inline-form{
  display:inline;
}

.small-btn{
  border:1px solid var(--line);
  background:white;
  color:var(--navy);
  border-radius:10px;
  padding:7px 10px;
  cursor:pointer;
  font-weight:750;
}
