/* ================================================
   STGM Bruchstrasse - CSS-Styles 2026
   Design: Einladend & Frisch (Grau-Variante)
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Epilogue:wght@400;500;600;700;800&display=swap');

:root {
  --gray:         #4B5563;
  --gray-light:   #9CA3AF;
  --gray-pale:    #F3F4F6;
  --sand:         #F0E8D8;
  --sand-dark:    #E0D0B8;
  --warm:         #FAF7F2;
  --clay:         #D4785A;
  --clay-light:   #E8967C;
  --clay-pale:    #FAEEE9;
  --ink:          #1C2B22;
  --ink-soft:     #445548;
  --mist:         #8FA898;
  --border:       #DFD8CC;
  --white:        #FFFFFF;
  --shadow:       rgba(28,43,34,0.08);
  --shadow-md:    rgba(28,43,34,0.15);

  --font-display: 'Bitter', Georgia, serif;
  --font-body:    'Epilogue', system-ui, sans-serif;
  --navbar-height: 90px;

  /* Legacy-Kompatibilitat */
  --accent-color:            var(--clay);
  --background-color:        var(--gray);
  --darker-background-color: #3D3D3D;
  --menutext-color:          #ffffff;
  --site-background:         var(--warm);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100%;
  background: var(--warm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--gray); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gray-light); }

/* ================================================
   NAVIGATION
   ================================================ */

nav {
  height: var(--navbar-height);
  background: var(--gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0; z-index: 200;
  padding: 0 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}

nav .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; min-width: 0; overflow: hidden; }
nav .logo img { height: 68px; border-radius: 8px; }
.logo-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; min-width: 0; overflow: hidden; }
.logo-title { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-sub { font-size: .72rem; color: rgba(255,255,255,.6); font-weight: 500; white-space: nowrap; }
@media (max-width: 800px) {
  .logo-title { font-size: .78rem; }
  .logo-sub { font-size: .62rem; }
}

/* -- Desktop Menu -- */
#nav-menu {
  list-style: none; display: flex;
  height: var(--navbar-height);
  align-items: stretch;
  margin: 0; padding: 0;
}

#nav-menu > li {
  position: relative;
  display: flex; align-items: stretch;
  min-width: 110px; text-align: center;
}
#nav-menu > li:hover { background: rgba(255,255,255,.1); }

#nav-menu > li > a,
#nav-menu > li > .nav-label {
  display: flex; align-items: center; justify-content: center;
  padding: 0 18px; width: 100%;
  color: rgba(255,255,255,.85);
  font-size: .87rem; font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer; white-space: nowrap;
  text-decoration: none;
  transition: color .15s;
  user-select: none;
}
#nav-menu > li > a:hover,
#nav-menu > li:hover > .nav-label { color: white; }

/* Dropdown -- Desktop: per :hover */
.dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--navbar-height); left: auto; right: 0;
  min-width: 210px;
  list-style: none; margin: 0; padding: 0;
  background: #4B5563;
  border-top: 2px solid var(--clay);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
  overflow: hidden;
  z-index: 300;
}
@media (min-width: 801px) {
  #nav-menu > li.has-dropdown:hover .dropdown { display: flex; }
}
.dropdown li { width: 100%; }
.dropdown li + li { border-top: 1px solid rgba(255,255,255,.06); }
.dropdown li a {
  display: block; padding: 13px 22px;
  color: rgba(255,255,255,.8);
  font-size: .87rem; font-weight: 500;
  white-space: nowrap; text-decoration: none;
  transition: background .12s, color .12s;
}
.dropdown li a:hover { background: rgba(255,255,255,.1); color: white; }

/* -- Hamburger -- */
.toggle_button {
  display: none;
  flex-direction: column; justify-content: space-between;
  width: 30px; height: 22px;
  background: none; border: none;
  cursor: pointer; padding: 0; flex-shrink: 0;
  z-index: 201;
}
.bar {
  display: block; height: 3px; width: 100%;
  background: rgba(255,255,255,.85); border-radius: 99px;
  transition: transform .25s, opacity .2s;
}
.toggle_button.open .bar:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.toggle_button.open .bar:nth-child(2) { opacity: 0; }
.toggle_button.open .bar:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* Overlay */
#nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 198;
}
#nav-overlay.open { display: block; }

/* -- Mobile -- */
@media (max-width: 800px) {
  .toggle_button { display: flex; }

  #nav-menu {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 280px; max-width: 85vw;
    height: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: var(--navbar-height);
    background: #4B5563;
    box-shadow: -4px 0 28px rgba(0,0,0,.4);
    transform: translateX(110%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    z-index: 199;
  }
  #nav-menu.open { transform: translateX(0); }

  #nav-menu > li {
    min-width: 100%; height: auto;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-direction: column; align-items: stretch;
  }
  #nav-menu > li > a,
  #nav-menu > li > .nav-label {
    height: auto; padding: 16px 22px;
    justify-content: space-between;
    font-size: .95rem;
  }
  #nav-menu > li > .nav-label::after {
    content: '\25BE'; font-size: .75rem; opacity: .6;
    transition: transform .2s;
  }
  #nav-menu > li.has-dropdown.open > .nav-label::after {
    transform: rotate(180deg);
  }

  /* Mobile Dropdown -- statisch eingeklappt */
  .dropdown {
    position: static;
    border-top: none;
    border-left: 3px solid var(--clay);
    border-radius: 0; box-shadow: none;
    background: rgba(0,0,0,.2);
    margin-left: 18px; min-width: 0;
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
  }
  #nav-menu > li.has-dropdown.open .dropdown {
    display: flex;
    max-height: 400px;
  }
  .dropdown li a { padding: 14px 20px; font-size: .9rem; white-space: normal; }
}

/* ================================================
   HERO / HEADLINE IMAGE
   ================================================ */

.headline_img { position: relative; overflow: hidden; }
.headline_img_style { width: 100%; height: 12rem; object-fit: cover; display: block; }
@media (min-width: 601px)  { .headline_img_style { height: 18rem; } }
@media (min-width: 1200px) { .headline_img_style { height: 22rem; } }

/* ================================================
   HERO SPLIT (Homepage)
   ================================================ */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; min-height: auto; } }

.hero-left {
  background: var(--sand);
  padding: 64px 48px 56px 40px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
@media (max-width: 760px) {
  .hero-left { padding: 36px 20px 32px; }
  .hero-title { font-size: 1.9rem; margin-bottom: 14px; }
  .hero-desc { font-size: .95rem; margin-bottom: 22px; max-width: 100%; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions a { text-align: center; display: block; }
  .hero-right { padding: 28px 20px 32px; }
  .event-date { font-size: 1.8rem; }
  .next-event {
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.35);
  border-top: 3px solid var(--clay); padding: 22px 18px; }
  .stat-val { font-size: 1.4rem; }
}
.hero-left::after {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(75,85,99,.08);
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700;
  color: var(--gray); letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-eyebrow::before { content: ''; display: block; width: 22px; height: 2px; background: var(--gray); border-radius: 2px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; color: var(--ink);
  line-height: 1.1; margin-bottom: 18px;
}
.hero-title em { color: var(--gray); font-style: italic; }

.hero-desc {
  font-size: 1rem; color: var(--ink-soft);
  line-height: 1.75; max-width: 38ch; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-right {
  background: var(--gray);
  padding: 48px 40px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-right::before {
  content: ''; position: absolute; bottom: -100px; right: -100px;
  width: 340px; height: 340px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.hero-right::after {
  content: ''; position: absolute; top: -60px; left: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}

.next-event {
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.35);
  border-top: 3px solid var(--clay);
  position: relative; z-index: 1;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px; padding: 28px;
  margin-bottom: 20px;
}
.event-label { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--clay-light); margin-bottom: 12px; }
.event-date { font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; color: white; line-height: 1; margin-bottom: 2px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.event-month { font-size: 1rem; font-weight: 700; color: white; margin-bottom: 18px; letter-spacing: .02em; }
.event-detail { font-size: .92rem; color: rgba(255,255,255,.9); line-height: 1.75; font-weight: 500; border-top: 1px solid rgba(255,255,255,.2); padding-top: 14px; }
.event-detail strong { color: white; font-weight: 800; }

.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 16px; text-align: center; }
.stat-val { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: white; line-height: 1; }
.stat-lbl { font-size: .7rem; font-weight: 600; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ================================================
   ANNOUNCEMENT / WELCOME STRIP
   ================================================ */

.announcement {
  background: var(--clay);
  padding: 14px 24px; text-align: center;
}
.announcement-text, .announcement p {
  color: white; font-size: .97rem; font-weight: 600;
  font-family: var(--font-body);
}

.welcome-strip {
  background: var(--clay);
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.ws-icon { font-size: 1.3rem; }
.ws-text { font-size: .95rem; font-weight: 600; color: white; }
.ws-text a { color: rgba(255,255,255,.9); text-decoration: underline; text-underline-offset: 3px; }
.ws-text a:hover { color: white; }

/* ================================================
   CONTENT AREA
   ================================================ */

.Header { padding: 2rem 1.25rem .75rem; background: var(--warm); }
@media (max-width: 600px) { .Header { padding: 1.5rem 1rem .5rem; } }

h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; color: var(--ink); }
h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--ink); }
h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-top: 1.8rem; margin-bottom: .6rem; }

.Center { display: flex; justify-content: center; margin: 1rem; text-align: center; }
.Space { margin-top: 2.5rem; }

.textbox, .content {
  max-width: 760px; margin: 2rem auto;
  padding: 2rem 2rem;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 16px var(--shadow);
}
@media (max-width: 600px) { .textbox, .content { padding: 1.5rem 1.25rem; margin: 1rem 12px; } }
@media (min-width: 601px) { .textbox, .content { padding: 2.5rem 3rem; } }

.textbox + .content { margin-top: 0; border-top: none; border-radius: 0 0 16px 16px; }

.Text { font-size: 1rem; color: var(--ink); line-height: 1.75; }
.Text_Absatz { font-size: 1rem; color: var(--ink-soft); line-height: 1.8; margin-top: 1rem; }
.Text_Absatz_wichtig { font-size: 1.05rem; font-weight: 700; color: var(--clay); margin-top: 1rem; }

/* About section (Homepage) */
.about {
  max-width: 1020px; margin: 0 auto;
  padding: 64px 36px;
  display: grid; grid-template-columns: 1fr 2fr; gap: 56px; align-items: start;
}
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 20px; padding: 36px 20px; } }

.about-sidebar {}
.sidebar-tag {
  display: inline-block; background: var(--gray-pale); color: var(--gray);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 6px; padding: 4px 10px; margin-bottom: 18px;
}
.sidebar-heading { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--ink); line-height: 1.2; margin-bottom: 18px; }
.sidebar-heading em { color: var(--gray); font-style: italic; }
.sidebar-since { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.since-badge { width: 46px; height: 46px; border-radius: 10px; background: var(--sand-dark); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: .74rem; font-weight: 700; color: var(--ink-soft); line-height: 1.1; text-align: center; flex-shrink: 0; }
.since-text { font-size: .84rem; color: var(--ink-soft); font-weight: 500; }
.since-text strong { color: var(--ink); display: block; }

.about-body p { font-size: 1rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: 1rem; }
.about-body p:first-child { font-size: 1.05rem; color: var(--ink); font-weight: 500; }

.join-card {
  margin-top: 28px; background: var(--clay-pale);
  border: 1.5px solid rgba(212,120,90,.2); border-radius: 14px;
  padding: 20px 22px; display: flex; align-items: flex-start; gap: 12px;
}
.join-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.join-text { font-size: .94rem; color: var(--ink-soft); font-weight: 500; line-height: 1.65; }
.join-text a { color: var(--clay); font-weight: 700; }
.join-text a:hover { color: var(--clay-light); }

.sign { margin-top: 24px; font-size: .87rem; color: var(--mist); font-style: italic; }

/* ================================================
   PILLARS / FEATURE CARDS
   ================================================ */

.pillars {
  background: var(--sand);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px 36px;
}
.pillars-inner {
  max-width: 1020px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 760px) { .pillars-inner { grid-template-columns: 1fr; } .pillars { padding: 36px 20px; } }

.pillar {
  background: white; border-radius: 16px;
  border: 1px solid var(--border); padding: 26px 22px;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 10px 28px var(--shadow-md); }
.pillar-icon-wrap { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px; }
.pi-gray { background: var(--gray-pale); }
.pi-clay { background: var(--clay-pale); }
.pi-sand { background: var(--sand); }
.pillar h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; margin-top: 0; }
.pillar p { font-size: .86rem; color: var(--ink-soft); line-height: 1.65; }
.pillar-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-size: .82rem; font-weight: 700; color: var(--gray); }
.pillar-link::after { content: '->'; }
.pillar-link:hover { color: var(--gray-light); text-decoration: none; }

/* ================================================
   ARCHIVE CARDS (frame-position)
   ================================================ */

.frame-position {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; padding: 1.5rem; max-width: 1020px; margin: 0 auto;
  align-items: stretch;
}
.frame-links, .frame-rechts, .frame-mitte {
  background: var(--white); border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden; box-shadow: 0 2px 12px var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
  width: auto; margin: 0;
}
/* letztes flex-div (Button) ans Ende pushen */
.frame-links > .flex:last-of-type,
.frame-rechts > .flex:last-of-type,
.frame-mitte > .flex:last-of-type { margin-top: auto; padding-bottom: 4px; }
/* frame-position Reihen gleich hoch */
.frame-position { align-items: stretch; }
.frame-links:hover, .frame-rechts:hover, .frame-mitte:hover {
  transform: translateY(-4px); box-shadow: 0 8px 24px var(--shadow-md);
}
.frame-links img, .frame-rechts img, .frame-mitte img {
  width: 100%; height: 200px; object-fit: cover; display: block;
}
.frame-center { display: flex; justify-content: center; padding: 0 1rem; }

/* ================================================
   VORSTAND CARDS
   ================================================ */

.vorstand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; padding: 1.5rem; max-width: 1020px; margin: 0 auto;
}
.vorstand-card {
  background: var(--white); border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden; box-shadow: 0 2px 12px var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.vorstand-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px var(--shadow-md); }
.vorstand-card img { width: 100%; height: 200px; object-fit: cover; object-position: top; display: block; }
.vorstand-card-content { padding: 1.2rem; }
.vorstand-card h3 { font-family: var(--font-display); color: #a40b27; margin: 0 0 .3rem; font-size: 1rem; }
.vorstand-card .rolle { color: var(--ink) !important; font-weight: 700; margin-bottom: .6rem; font-size: .93rem; }
.vorstand-card .info { font-size: .84rem; color: var(--ink-soft); margin-bottom: .2rem; }
.vorstand-card .hobby { font-size: .8rem; color: var(--mist); margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--border); font-style: italic; }

.team-section { max-width: 860px; margin: 2rem auto; padding: 0 1.5rem; text-align: center; }
.team-section img { width: 100%; max-width: 800px; border-radius: 14px; box-shadow: 0 4px 20px var(--shadow-md); }
.team-section h3 { color: var(--gray); margin-bottom: 1rem; font-size: 1.3rem; }

.intro-section { max-width: 760px; margin: 0 auto; padding: 1.5rem; }
.intro-section p { line-height: 1.7; color: var(--ink-soft); margin-bottom: .5rem; }

.gedenken-hinweis, .gedenken-card {
  background: var(--white); border-radius: 14px;
  border: 1px solid var(--border);
  padding: 2rem; margin: 1.5rem auto;
  max-width: 760px; box-shadow: 0 2px 12px var(--shadow);
  border-left: 4px solid var(--gray);
}
.gedenken-card img { max-width: 220px; border-radius: 10px; box-shadow: 0 2px 10px var(--shadow-md); }
.gedenken-card h3 { color: var(--gray); margin: 1rem 0 .4rem; font-size: 1.2rem; }
.gedenken-card .lebensdaten { color: var(--mist); font-size: .9rem; margin-bottom: .8rem; }
.gedenken-card p { color: var(--ink-soft); line-height: 1.75; margin-bottom: .5rem; }
.gedenken-intro { max-width: 760px; margin: 0 auto; text-align: center; padding: 1rem; }
.gedenken-intro p { color: var(--ink-soft); font-style: italic; }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem auto; max-width: 500px; }
.section-title { text-align: center; color: var(--gray); font-family: var(--font-display); font-size: 1.4rem; margin: 2rem 0 1rem; }
.gedenken-hinweis p { color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.gedenken-hinweis strong { color: var(--gray); }
.gedenken-hinweis a { display: inline-block; margin-top: .7rem; color: var(--clay); font-weight: 700; }

/* ================================================
   BUTTONS
   ================================================ */

.button a, .button, .btn-moss, .btn-primary {
  display: inline-block;
  background: var(--gray);
  color: white !important;
  font-family: var(--font-body);
  font-size: .92rem; font-weight: 700;
  padding: 11px 24px;
  border-radius: 10px;
  box-shadow: 0 3px 12px var(--shadow);
  transition: background .15s, transform .15s;
  cursor: pointer; border: none;
  text-decoration: none;
}
.button:hover, .btn-moss:hover { background: var(--gray-light); color: white !important; transform: translateY(-2px); text-decoration: none; }

.btn-soft {
  display: inline-block;
  background: white; color: var(--ink);
  font-size: .92rem; font-weight: 600;
  padding: 11px 24px; border-radius: 10px;
  border: 1.5px solid var(--border);
  transition: border-color .15s; text-decoration: none;
}
.btn-soft:hover { border-color: var(--gray-light); color: var(--gray); text-decoration: none; }

/* ================================================
   GALLERY / MASONRY
   ================================================ */

.masonryholder {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px; padding: 1.5rem;
  max-width: 1200px; margin: 0 auto;
}
.masonryblock { position: relative; overflow: hidden; border-radius: 10px; box-shadow: 0 2px 8px var(--shadow); aspect-ratio: 4/3; background: var(--border); }
.masonryblock img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; display: block; }
.masonryblock:hover img { transform: scale(1.05); }
.img_slide { width: 100%; height: 100%; object-fit: cover; display: block; }
.img_style { border-radius: 10px; box-shadow: 0 4px 16px var(--shadow-md); }

@media (max-width: 600px) { .masonryholder { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: .75rem; } }
@media (min-width: 601px) and (max-width: 900px) { .masonryholder { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 901px) { .masonryholder { grid-template-columns: repeat(4, 1fr); } }

/* ================================================
   MISC
   ================================================ */

.Liste { margin: 1rem 1rem 1rem 2.5rem; color: var(--ink-soft); line-height: 1.8; }
.NEU { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--clay); padding: 1.5rem; }
.naechster-termin { font-weight: 700; color: var(--clay); }
.Linkinsite { color: var(--clay); }
.frame_view { padding: 1.5rem; max-width: 760px; margin: 0 auto; }
.flex { display: flex; justify-content: center; align-items: center; }

/* Back-to-top link */
.Text_Absatz a[href="#anfang"] { color: var(--gray); font-weight: 600; }

/* ================================================
   FOOTER
   ================================================ */

footer {
  background: #2D3748;
  margin-top: 4rem;
  color: rgba(255,255,255,.75);
  font-family: var(--font-body);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr 1fr;
  gap: 48px;
  max-width: 1100px; margin: 0 auto;
  padding: 52px 36px 36px;
}

/* Brand */
.footer-brand {}
.footer-logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.footer-logo-name {
  font-family: var(--font-display);
  font-size: .92rem; font-weight: 700;
  color: white; line-height: 1.3;
}
.footer-desc {
  font-size: .84rem; color: rgba(255,255,255,.8);
  line-height: 1.75; margin-bottom: 16px;
}
.footer-badge {
  display: inline-block;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: .72rem; font-weight: 700;
  color: rgba(255,255,255,.6);
  letter-spacing: .08em; text-transform: uppercase;
}

/* Columns */
.footer-heading {
  font-size: .68rem !important; font-weight: 800 !important;
  color: rgba(255,255,255,.85) !important;
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 16px; padding: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: 10px !important;
}

.footer-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.footer-list li {
  font-size: .83rem; color: rgba(255,255,255,.92);
  line-height: 1.5;
}
.footer-role {
  display: block;
  font-size: .7rem; font-weight: 700;
  color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 1px;
}

.footer-email {
  display: block; margin-bottom: 16px;
  font-size: .82rem; color: var(--clay-light) !important;
  font-weight: 600; line-height: 1.5;
  word-break: break-all;
}
.footer-email:hover { color: var(--clay-light) !important; text-decoration: underline; }

.footer-links {
  list-style: none; margin: 0 0 20px; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.footer-links li a {
  font-size: .84rem; color: rgba(255,255,255,.9) !important;
  transition: color .15s;
}
.footer-links li a:hover { color: rgba(255,255,255,.9) !important; }

.footer-qr {
  display: inline-flex; flex-direction: column;
  align-items: center; gap: 6px;
  opacity: .55; transition: opacity .2s;
}
.footer-qr:hover { opacity: .9; }
.footer-qr img { border-radius: 6px; }
.footer-qr span {
  font-size: .65rem; font-weight: 700;
  color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .1em;
}

/* Bottom bar */
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding: 18px 36px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: .75rem; color: rgba(255,255,255,.25);
}

/* Tablet */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    padding: 40px 24px 28px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-logo-name { font-size: .88rem; }
}

/* Mobile */
@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    padding: 28px 16px 20px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom {
    flex-direction: column; text-align: center;
    padding: 16px 20px; gap: 4px;
  }
  .footer-qr { flex-direction: row; align-items: center; }
  .footer-email { font-size: .72rem; word-break: break-all; }
  .footer-list li { font-size: .75rem; }
  .footer-links li a { font-size: .75rem !important; }
  .footer-role { font-size: .62rem; }
  .footer-heading { font-size: .6rem !important; }
}

@media (max-width: 420px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 24px 14px 16px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-desc { display: none; }
  .footer-beisitzer { display: none; }
  .footer-list li { font-size: .73rem; line-height: 1.5; }
  .footer-role { display: block; }
}

/* Beisitzer: lange Version normal, kurze Version auf schmalem Screen */
.beisitzer-short { display: none; }
@media (max-width: 900px) {
  .beisitzer-long { display: none; }
  .beisitzer-short { display: inline; }
}

/* ================================================
   TIMELINE (horizontal)
   ================================================ */

.timeline-section {
  padding: 56px 0 60px;
  background: var(--warm);
  overflow-x: auto;
}
.timeline-header {
  text-align: center;
  margin-bottom: 48px;
}

.tl-header { text-align: center; margin-bottom: 52px; }
.tl-tag {
  display: inline-block;
  background: var(--gray-pale); color: var(--gray);
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; border-radius: 6px;
  padding: 4px 12px; margin-bottom: 12px;
}
.tl-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700; color: var(--ink);
}

/* Wrapper */
.tl-wrapper {
  max-width: 980px; width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  padding: 0 24px;
  -webkit-overflow-scrolling: touch;
}
.tl-wrapper::-webkit-scrollbar { height: 4px; }
.tl-wrapper::-webkit-scrollbar-track { background: var(--border); border-radius: 2px; }
.tl-wrapper::-webkit-scrollbar-thumb { background: var(--mist); border-radius: 2px; }

/* Grid: Zeile 1 = Karten oben, Zeile 2 = Jahr-Label, Zeile 3 = Dots+Linie, Zeile 4 = Karten unten */
.tl-items {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows:
    150px   /* Karten oben */
    64px    /* Dots */
    150px;  /* Karten unten */
  width: 100%;
  min-width: 660px;
  margin: 0 auto;
  position: relative;
  row-gap: 0;
}

/* Horizontale Linie: exakt Zeile 3 Mitte */
/* top = 150 + 28 + 32 = 210px (halbe Dot-Zeile) */
.tl-items::before {
  content: '';
  position: absolute;
  top: calc(150px + 32px);
  left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--clay), var(--gray) 40%, var(--gray) 60%, var(--clay));
  border-radius: 3px;
  z-index: 0;
  transform: translateY(-50%);
}
/* Beim unteren Item sitzt das Jahr-Label in Zeile 3 über dem Dot */

/* Dot: Zeile 3 */
.tl-dot {
  grid-row: 2;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
  border: 4px solid var(--warm);
  justify-self: center; align-self: center;
  flex-shrink: 0;
}
.tl-dot span {
  font-size: .68rem; font-weight: 800;
  color: white; letter-spacing: .02em;
}
.tl-dot--clay {
  background: var(--clay);
  box-shadow: 0 0 0 3px var(--clay), 0 4px 18px rgba(212,120,90,.35);
}
.tl-dot--gray {
  background: var(--gray);
  box-shadow: 0 0 0 3px var(--gray), 0 4px 18px rgba(61,74,92,.3);
}
.tl-dot--active { animation: glow 2s infinite; }
@keyframes glow {
  0%,100% { box-shadow: 0 0 0 4px var(--clay), 0 4px 20px rgba(212,120,90,.4); }
  50%      { box-shadow: 0 0 0 10px rgba(212,120,90,.18), 0 4px 20px rgba(212,120,90,.3); }
}

/* Gepunkteter Connector */
.tl-conn {
  grid-row: 2;
  justify-self: center;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom, var(--mist) 0, var(--mist) 4px, transparent 4px, transparent 9px
  );
  position: relative; z-index: 1;
}
.tl-conn--top {
  align-self: start;
  height: 50%;
  margin-top: 0;
}
.tl-conn--bottom {
  align-self: end;
  height: 50%;
}

/* Karte oben: Zeile 1, unten ausrichten */
.tl-card-top {
  grid-row: 1;
  align-self: end;
  justify-self: center;
  margin-bottom: 0;
}
/* Karte unten: Zeile 4, oben ausrichten */
.tl-card-bottom {
  grid-row: 3;
  align-self: start;
  justify-self: center;
  margin-top: 0;
}

/* Leere Zellen */
.tl-empty-top    { grid-row: 1; }
.tl-empty-bottom { grid-row: 3; }

/* Gemeinsames Karten-Styling */
.tl-card-top, .tl-card-bottom {
  background: white;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 14px 16px;
  box-shadow: 0 2px 14px var(--shadow);
  width: 152px;
  height: 130px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative; z-index: 1;
}
.tl-card-top:hover, .tl-card-bottom:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px var(--shadow-md);
  border-color: var(--gray);
}

/* Badge */
.tl-badge {
  display: inline-block;
  font-size: .58rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  border-radius: 4px; padding: 2px 7px;
}
.tl-badge--stammtisch { background: var(--gray-pale); color: var(--gray); }
.tl-badge--fest       { background: var(--clay-pale); color: var(--clay); }
.tl-badge--jubileum   { background: #FEF3C7; color: #92400E; }
.tl-badge--save       { background: var(--clay); color: white; }

.tl-card-title {
  font-family: var(--font-display);
  font-size: .88rem; font-weight: 700;
  color: var(--ink); line-height: 1.3;
}
.tl-card-desc {
  font-size: .72rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.tl-card-date { font-size: .7rem; color: var(--clay); font-weight: 700; }

/* Archiv-Button */
.tl-more { text-align: center; margin-top: 2.5rem; }
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .85rem; font-weight: 700;
  padding: 10px 24px; border-radius: 8px;
  border: 1.5px solid var(--border);
  color: var(--ink-soft); text-decoration: none;
  transition: border-color .2s, color .2s;
}
.btn:hover { border-color: var(--gray); color: var(--gray); }
  
/* Frame-Karten: Text zentriert */
.frame-links .Text_Absatz,
.frame-rechts .Text_Absatz,
.frame-mitte .Text_Absatz,
.frame-links h3,
.frame-rechts h3,
.frame-mitte h3 { text-align: center; }

/* Button ans Ende der Karte pushen */
.frame-links .button, .frame-rechts .button, .frame-mitte .button,
.frame-links .frame-center:last-child, .frame-rechts .frame-center:last-child, .frame-mitte .frame-center:last-child { margin-top: auto; padding-top: 12px; }