:root{
  --card: rgba(255,255,255,0.92);
  --text: #0c1b12;
  --muted: rgba(12,27,18,0.7);
  --white: #ffffff;
  --accent: #e31c24; /* Hockey-Rot */
  --shadow: 0 18px 55px rgba(0,0,0,0.18);
  --radius: 18px;
  --max: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html, body{ height: 100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: transparent;
}

.container{
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}


.page-bg{
  position: fixed;
  inset: 0;
  background-image: url("assets/hockey_field_bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

/* Smartphone (Portrait): vertikal anzeigen (Torkreise oben/unten) */
@media (max-width: 768px) and (orientation: portrait){
  .page-bg{
    background-image: url("assets/hockey_field_bg_rot90.jpg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    /* falls "contain" seitlich Luft lässt: gleiche Grünfläche dahinter */
    background-color: #146b2e;
  }

  .hero-bg{
    background-image: url("assets/hockey_field_bg_rot90.jpg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #146b2e;
  }

}

.page-overlay{
  position: fixed;
  inset: 0;
  z-index: -1;
  /* Sehr leichter Kontrast, damit weiße Karten „stehen“ bleiben */
  background: radial-gradient(900px 500px at 20% 30%, rgba(0,0,0,0.10), transparent 60%),
              linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.18));
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: .75rem 0;
  gap: 1rem;
}

.brand{
  display:flex;
  align-items:center;
  gap: .75rem;
  text-decoration:none;
  color: inherit;
}

.brand-logo{
  /* 1.5x larger logo */
  width: 66px;
  height: 66px;
  border-radius: 999px;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height: 1.05;
}
.brand-text strong{ font-size: .95rem; }
.brand-text span{ font-size: .9rem; opacity: .78; }

.nav{
  display:flex;
  align-items:center;
  gap: 1rem;
}
.nav a{
  text-decoration:none;
  color: rgba(12,27,18,0.85);
  font-weight: 700;
  font-size: .95rem;
}
.nav a:hover{ color: var(--accent); }

.nav-toggle{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.9);
  cursor: pointer;
}
.nav-toggle span{
  display:block;
  height: 2px;
  width: 18px;
  margin: 4px auto;
  background: rgba(12,27,18,0.75);
  border-radius: 999px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: .9rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  text-decoration:none;
  font-weight: 800;
  letter-spacing: .2px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 30px rgba(227, 28, 36, 0.25);
}
.btn:hover{ filter: brightness(0.98); transform: translateY(-1px); }
.btn--ghost{
  background: rgba(255,255,255,0.78);
  color: rgba(12,27,18,0.9);
  box-shadow: none;
}
.btn--ghost:hover{ background: rgba(255,255,255,0.92); }
.btn--small{ padding: .55rem .85rem; font-size: .92rem; }

.hero{
  position: relative;
  min-height: 78vh;
  display:flex;
  align-items: center;
  padding: 3.5rem 0 3.2rem;
  overflow:hidden;
}

.hero-bg{
  position:absolute;
  inset:0;
  background-image: url("assets/hockey_field_bg.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 500px at 20% 35%, rgba(0,0,0,0.22), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.38), rgba(0,0,0,0.55));
}

.hero-inner{
  position: relative;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.6rem;
  align-items: start;
}

.hero-card{
  background: rgba(255,255,255,0.90);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.1rem;
  border: 1px solid rgba(0,0,0,0.06);
}

.hero-card h1{
  margin: 0 0 .6rem;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.12;
  font-weight: 500;
}

.hero-card h1 .h1-regular{ font-weight: 500; }
.hero-card h1 .h1-bold{ font-weight: 850; }
.lead{
  margin: 0 0 1.2rem;
  color: rgba(12,27,18,0.8);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-actions{
  display:flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 1.1rem;
}

.hero-meta{
  display:flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.chip{
  display:inline-flex;
  padding: .45rem .7rem;
  border-radius: 999px;
  background: rgba(12,27,18,0.06);
  color: rgba(12,27,18,0.78);
  font-weight: 700;
  font-size: .9rem;
}

.hero-side{
  display:flex;
  flex-direction: column;
  gap: 1rem;
}

.photo-card{
  background: rgba(255,255,255,0.88);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  border: 1px solid rgba(0,0,0,0.06);
}
.photo-card img{
  width:100%;
  height: 240px;
  object-fit: cover;
  display:block;
}
.photo-caption{
  padding: .85rem 1rem;
  font-weight: 700;
  color: rgba(12,27,18,0.78);
}

.section{
  padding: 4.2rem 0;
}
.section--alt{
  background: rgba(240,243,242,0.78);
}

.section-head{
  margin-bottom: 1.6rem;
}
.section-head h2{
  margin:0 0 .4rem;
  font-size: 2rem;
}
.section-head p{
  margin:0;
  color: rgba(12,27,18,0.72);
  max-width: 80ch;
  line-height: 1.6;
}

/* Better contrast on field background for specific section headers */
#ziele .section-head h2,
#vorstand .section-head h2{
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}

#ziele .section-head p,
#vorstand .section-head p{
  color: rgba(255,255,255,0.82);
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}

.grid{ display:grid; gap: 1rem; }
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--2{ grid-template-columns: repeat(2, 1fr); }

/* Wenn in einem 2-Spalten-Grid nur ein Element vorhanden ist, soll es volle Breite nutzen */
.grid--2 > .card:only-child{ grid-column: 1 / -1; }

.card{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 1.25rem 1.25rem;
}
.card h3{ margin: 0 0 .45rem; }
.card p{ margin: 0; color: rgba(12,27,18,0.72); line-height: 1.6; }

.satzung-actions{
  display:flex;
  gap: .65rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
}

.satzung h3{ margin: .2rem 0 .6rem; }
.satzung p{ color: rgba(12,27,18,0.78); line-height: 1.65; }

.satzung-item{
  margin-top: .65rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(12,27,18,0.03);
}
.satzung-item summary{
  cursor: pointer;
  padding: .85rem 1rem;
  font-weight: 900;
  color: rgba(12,27,18,0.85);
  list-style: none;
}
.satzung-item summary::-webkit-details-marker{ display:none; }
.satzung-body{
  padding: .0rem 1rem 1rem;
}
.satzung-body ul{
  margin: .6rem 0 0;
  padding-left: 1.15rem;
  color: rgba(12,27,18,0.78);
  line-height: 1.65;
}

.pdf-frame{
  width:100%;
  height: min(65vh, 720px);
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.7);
}
.pdf-frame iframe{ width:100%; height:100%; border:0; }

/* Vorstandsfoto */
.board-card{
  padding: 0;
  overflow: hidden;
  margin-bottom: 1rem;
}
.board-card img{
  width: 100%;
  height: 340px;
  object-fit: cover;
  /* Fokus etwas weiter oben, damit Gesichter nicht abgeschnitten werden */
  object-position: 50% 0%;
  display: block;
}
.board-caption{
  padding: .85rem 1rem;
  font-weight: 900;
  color: rgba(12,27,18,0.78);
  background: rgba(255,255,255,0.92);
}

.person{ display:flex; align-items:center; gap: .85rem; }
.avatar{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(227,28,36,0.12);
  color: rgba(227,28,36,0.95);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
}

.muted{ color: var(--muted); }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }

.bankbox{ margin-top: .9rem; display:flex; flex-direction: column; gap: .6rem; }
.bankrow{
  display:grid;
  grid-template-columns: 120px 1fr auto;
  gap: .75rem;
  align-items:center;
  padding: .75rem .85rem;
  border-radius: 14px;
  background: rgba(12,27,18,0.04);
  border: 1px solid rgba(0,0,0,0.06);
}
.label{ font-weight: 900; color: rgba(12,27,18,0.8); }
.value{ font-weight: 800; color: rgba(12,27,18,0.88); }
.copy{
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  padding: .45rem .7rem;
  font-weight: 800;
  cursor: pointer;
}
.copy:hover{ border-color: rgba(227,28,36,0.45); }

.bullets{
  margin: .8rem 0 0;
  padding-left: 1.1rem;
  color: rgba(12,27,18,0.78);
  line-height: 1.7;
}

.cta-row{
  display:flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.2rem;
}

.toast{
  margin-top: 1rem;
  min-height: 1.2rem;
  font-weight: 800;
  color: rgba(12,27,18,0.72);
}

.site-footer{
  background: rgba(15,31,22,0.92);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.86);
  padding: 1.3rem 0;
}
.site-footer .muted{ color: rgba(255,255,255,0.72); }
.footer-impressum{ font-size: .80rem; line-height: 1.35; max-width: 72ch; }
.footer-inner{ display:flex; flex-wrap: wrap; align-items:center; justify-content: space-between; gap: 1rem; }
.footer-logo{ width: 60px; height: 60px; border-radius: 999px; }
.footer-text{ display:flex; flex-direction: column; gap: .2rem; }
.to-top{
  color: rgba(255,255,255,0.9);
  text-decoration:none;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,0.18);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.to-top:hover{ background: rgba(255,255,255,0.08); }

.footer-actions{ display:flex; align-items:center; gap: .9rem; }
.footer-admin{
  color: rgba(255,255,255,0.72);
  text-decoration: underline;
  font-weight: 800;
  font-size: .85rem;
}
.footer-admin:hover{ color: rgba(255,255,255,0.92); }


/* Modal (Admin Login) */
.modal{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.modal[hidden]{ display: none; }
.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
}
.modal-dialog{
  position: relative;
  width: min(560px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  padding: 1.25rem 1.25rem 1.15rem;
}
.modal-close{
  position: absolute;
  right: .8rem;
  top: .7rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.92);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover{ border-color: rgba(227,28,36,0.35); }
/* Forms (Admin) */
.form{ display:flex; flex-direction:column; gap: .85rem; }
.field{ display:flex; flex-direction:column; gap: .35rem; }
.field-label{ font-weight: 900; color: rgba(12,27,18,0.82); }
.input{
  width: 100%;
  padding: .75rem .9rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.92);
  font-weight: 800;
  outline: none;
}
.input:focus{ border-color: rgba(227,28,36,0.55); box-shadow: 0 0 0 4px rgba(227,28,36,0.12); }

.admin-portal-head{ display:flex; align-items:center; justify-content:space-between; gap: 1rem; }
.small-note{ margin-top: 1rem; }

@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .grid--3{ grid-template-columns: 1fr; }
  .grid--2{ grid-template-columns: 1fr; }
  .nav{ display:none; position:absolute; right: 1rem; top: 68px; flex-direction:column; gap: .35rem; padding: .8rem; background: rgba(255,255,255,0.95); border: 1px solid rgba(0,0,0,0.08); border-radius: 14px; box-shadow: 0 18px 55px rgba(0,0,0,0.16); }
  .nav a{ padding: .6rem .6rem; }
  .nav-toggle{ display:block; }
  .photo-card img{ height: 220px; }
  .board-card img{ height: 260px; }
}

@media (max-width: 520px){
  .bankrow{ grid-template-columns: 1fr; }
  .copy{ width: 100%; }
}


/* Better contrast on field background for Kontakt section header */
#kontakt .section-head h2{
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
#kontakt .section-head p{
  color: rgba(255,255,255,0.82);
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}


.textarea{
  min-height: 160px;
  resize: vertical;
  font-weight: 700;
  line-height: 1.55;
}

.divider{
  border: 0;
  border-top: 1px solid rgba(0,0,0,0.12);
  margin: 1.1rem 0;
}

.contact-row{
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 700px){
  .contact-row{ flex-direction: column; align-items: stretch; }
  .contact-row .btn{ width: 100%; }
}
