/* =========================
   style.css (frame + pages zusammengeführt)
   Quarkkeulen – Mystisch / Edel / Dark
   ========================= */

/* ===== Reset / Base ===== */
*{
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

html, body{
  height: 100%;
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #fff;

  /* mystischer Hintergrund */
  background:
    radial-gradient(1200px 800px at 50% 10%, rgba(255,0,0,0.12), transparent 60%),
    radial-gradient(900px 600px at 20% 80%, rgba(191,161,74,0.08), transparent 55%),
    #000;
}

/* Links */
a{
  color: inherit;
  text-decoration: none;
}

/* Vignette / Tiefe */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 40%, transparent 55%, rgba(0,0,0,0.70) 100%);
  z-index: -1;
}

/* Responsive Medien */
img{ max-width: 100%; height: auto; }
iframe, video{ max-width: 100%; }

/* Legacy Bilder */
img.logos{ height: 200px; border: 0; }
img.button{ height: 28px; border: 0; }

/* ===== Layout ===== */
body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /* Content darf nicht unterm fixed header verschwinden */
  padding-top: var(--header-offset, 240px);
}

#content{
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 12px 50px;

  /* Übergang */
  opacity: 1;
  transform: translateY(0);
  filter: none;

  transition:
    opacity 1.8s ease,
    transform 1.8s ease,
    filter 1.8s ease;

  will-change: opacity, transform, filter;
}

/* Beim Seitenwechsel */
#content.is-leaving{
  opacity: 0;
  transform: translateY(10px);

  /* mystischer roter Effekt passend zu deiner Seite */
  filter: drop-shadow(0 0 18px rgba(255,0,0,0.35));

  pointer-events: none;
}
#content.is-entering{
  opacity: 0;
  transform: translateY(20px);
}
/* Alte Wrapper stabilisieren */
#panetop, #panebottom{
  max-width: 1200px;
  width: 95%;
  margin: 0 auto;
}

/* Panebottom als dezenter Rahmen */
#panebottom{
  width: 100%;
  margin: 0 auto;
  padding: 0;

  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  overflow: hidden;

  background: rgba(0,0,0,0.18);
  box-shadow: 0 14px 50px rgba(0,0,0,0.55);
}

/* Page mit Hintergrund */
#page{
  background: rgba(0,0,0,0.75);
  padding: 18px;
}

/* Tabellen transparent */
table, td, th{ background: transparent; }

/* Floats absichern */
.clearfix::after{
  content: "";
  display: block;
  clear: both;
}

/* ===== Header (fixed, glass) ===== */
header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(255,0,0,0.55);
  box-shadow: 0 18px 60px rgba(0,0,0,0.65);

  padding: 18px 20px;
  text-align: center;

  transition: padding 0.25s ease, background 0.25s ease;
}

/* Shrink */
header.shrink{
  padding: 8px 20px;
  background: rgba(0,0,0,0.92);
}

/* ===== Logo / Titel ===== */
.logo-header{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  transition: gap 0.25s ease;
}

.logo-img{
  height: 100px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(255,0,0,0.55));
  transition: height 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.logo-text{
  font-size: 60px;
  font-weight: 900;
  letter-spacing: 3px;
  margin: 0;

  text-shadow:
    0 0 5px rgba(255,0,0,0.85),
    0 0 12px rgba(255,0,0,0.55),
    0 0 22px rgba(170,0,0,0.35);

  transition: font-size 0.25s ease;
}

header.shrink .logo-img{
  opacity: 0;
  height: 0;
  transform: scale(0.9);
  margin: 0;
}

header.shrink .logo-text{
  font-size: 34px;
}

header.shrink .logo-header{
  gap: 0;
}

/* ===== NAV (einmal sauber) ===== */
#mainNav{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Buttons */
#mainNav a{
  color: #fff;
  background: rgba(20,20,20,0.85);
  border: 1px solid rgba(255,0,0,0.70);

  padding: 10px 18px;
  border-radius: 10px;

  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;

  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

#mainNav a:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255,0,0,0.35);
  background: rgba(255,0,0,0.12);
  border-color: rgba(255,0,0,0.95);
}

#mainNav a.active{
  background: rgba(255,0,0,0.20);
  border-color: rgba(255,0,0,0.95);
  box-shadow: 0 0 22px rgba(255,0,0,0.45);
}

/* Desktop: nur FULL */
#mainNav .full{ display: inline; }
#mainNav .short{ display: none; }

/* ===== Typografie Bereiche ===== */
.title, .yellow, .section, .subsection, .subsubsection{ color: #f2d27a; }

.title{
  padding: 18px 14px;
  font-size: 30px;
  text-align: center;

  text-shadow: 0 0 10px rgba(191,161,74,0.35);

  background: linear-gradient(90deg, transparent, rgba(191,161,74,0.10), transparent);
  border-top: 1px solid rgba(191,161,74,0.35);
  border-bottom: 1px solid rgba(191,161,74,0.35);
  border-radius: 14px;
}

.section, .subsection, .subsubsection{ padding: 10px; }
.section{ font-size: 20px; }
.subsection{ font-size: 18px; }
.subsubsection{ font-size: 16px; }

p.para{ line-height: 1.65; margin: 10px 0; }
dt{ font-style: italic; }

div.row{
  clear: both;
  border-top: 1px solid rgba(255,255,255,0.20);
  padding-top: 10px;
  margin-top: 10px;
}

img.kopf{
  float: right;
  padding: 5px;
  width: 200px;
  border: 1px solid rgba(191,161,74,0.35);
  border-radius: 10px;
  transition: all 0.3s ease; /* weicher Übergang */
}

/* Wenn Bild verlinkt ist */
a img.kopf{
  border-color: rgba(255,0,0,0.65);
}

/* Hover Effekt */
img.kopf:hover{
  box-shadow: 0 0 25px rgba(255,0,0,0.9),
              0 0 50px rgba(255,0,0,0.6);
}

.bold{ font-weight: bold; }

/* ===== Buttons (Google Links) ===== */
.button-container{
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.custom-button{
  padding: 14px 26px;
  font-size: 18px;
  font-weight: 900;

  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.30);

  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.custom-button:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(255,255,255,0.08);
}

.blue-button{
  background: rgba(30,144,255,0.9);
  color: #fff;
}
.blue-button:hover{
  background: rgba(255,255,255,0.95);
  color: #000;
  border-color: rgba(30,144,255,0.9);
}

.yellow-button{
  background: rgba(255,215,0,0.95);
  color: #000;
}
.yellow-button:hover{
  background: rgba(255,255,255,0.95);
  color: #b88a00;
  border-color: rgba(255,215,0,0.95);
}

/* ===== Cards (Skat/Members) ===== */
.card-list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.card{
  display: flex;
  flex-direction: column;

  background: rgba(12,12,12,0.92);
  border: 1px solid rgba(191,161,74,0.35);
  border-radius: 14px;
  overflow: hidden;

  box-shadow: 0 10px 28px rgba(0,0,0,0.65);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.75), 0 0 26px rgba(191,161,74,0.20);
}

.card img{
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content{
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 15px;
  color: #e9e0c4;
}

.card-content h3{
  margin: 0 0 6px 0;
  color: #f2d27a;
  letter-spacing: 0.3px;
}

.card-content p{
  flex: 1;
  margin: 0 0 12px 0;
  opacity: 0.95;
}

.card-content button{
  padding: 10px;
  border: 1px solid rgba(255,0,0,0.55);
  background: rgba(255,0,0,0.18);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card-content button:hover{
  background: rgba(255,0,0,0.28);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(255,0,0,0.25);
}

/* Responsive cards */
@media (max-width: 1000px){
  .card-list{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .card-list{ grid-template-columns: 1fr; }
}

/* ===== Mystic Rules ===== */
.mystic-rule{
  position: relative;
  max-width: 900px;
  margin: 60px auto;
  padding: 60px 55px;

  background: rgba(15,15,15,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border: 2px solid rgba(191,161,74,0.65);
  border-radius: 24px;

  box-shadow:
    0 25px 60px rgba(0,0,0,0.6),
    0 0 35px rgba(191,161,74,0.25),
    inset 0 0 25px rgba(191,161,74,0.12);

  font-family: "Cinzel", serif;
  color: #e8d8a8;

  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.mystic-rule::before,
.mystic-rule::after{
  content: "Codex ist Codex";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  color: rgba(191,161,74,0.85);
  letter-spacing: 6px;
  opacity: 0.65;
  white-space: nowrap;
}
.mystic-rule::before{ top: 18px; }
.mystic-rule::after{ bottom: 18px; }

.mystic-rule h1{
  text-align: center;
  font-size: 36px;
  margin: 0 0 25px 0;
  color: #d4af37;
  text-shadow: 0 0 12px rgba(212,175,55,0.6);
}

.mystic-rule h2{
  margin-top: 30px;
  font-size: 20px;
  color: #c5a84b;
  border-bottom: 1px solid rgba(191,161,74,0.35);
  padding-bottom: 5px;
}

.mystic-rule p{
  line-height: 1.7;
  margin-top: 15px;
  font-size: 16px;
}

.mystic-quote{
  margin-top: 30px;
  font-style: italic;
  text-align: center;
  color: #f0e0b0;
  text-shadow: 0 0 10px rgba(191,161,74,0.35);
}

.mystic-rule:hover{
  transform: translateY(-2px);
  box-shadow:
    0 0 50px rgba(212,175,55,0.40),
    0 30px 70px rgba(0,0,0,0.70),
    inset 0 0 30px rgba(212,175,55,0.18);
}

/* ===== Member Profile ===== */
.member-wrap{
  width: min(92vw, 1100px);
  margin: 0 auto;
  padding: 0 12px 40px;
}

.member-hero{
  margin-top: 10px;
  padding: 28px 24px;
  border-radius: 22px;

  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(191,161,74,0.35);

  box-shadow:
    0 25px 60px rgba(0,0,0,0.6),
    0 0 35px rgba(191,161,74,0.18);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.member-grid{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}

.member-photo{
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,0,0,0.45);
  box-shadow: 0 0 26px rgba(255,0,0,0.18);
  display: block;
  max-width: 100%;
}

.member-tagline{
  margin-top: 10px;
  opacity: 0.95;
  line-height: 1.6;
}

.member-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(12,12,12,0.75);
}

.member-table td{
  padding: 12px 14px;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.member-table tr:last-child td{ border-bottom: 0; }

.member-table td:first-child{
  width: 210px;
  color: #f2d27a;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.member-box{
  margin-top: 22px;
  padding: 20px;
  border-radius: 20px;

  border: 1px solid rgba(191,161,74,0.35);
  background: rgba(15,15,15,0.75);

  box-shadow: 0 10px 35px rgba(0,0,0,0.5);
}

.member-box .section{ padding-left: 0; }

/* ===== Kontakt Card ===== */
.contact-card{
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(191,161,74,0.35);
  background: rgba(15,15,15,0.70);
  box-shadow: 0 10px 35px rgba(0,0,0,0.5);
}

.contact-email{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label{
  font-size: 12px;
  opacity: 0.85;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #f2d27a;
}

.contact-mail{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255,0,0,0.18);
}
.contact-mail:hover{ text-decoration: underline; }

.contact-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.contact-btn{
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,0,0,0.70);
  background: rgba(255,0,0,0.16);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.contact-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255,0,0,0.25);
  background: rgba(255,0,0,0.22);
}
.contact-btn.ghost{
  border-color: rgba(191,161,74,0.55);
  background: rgba(191,161,74,0.10);
}

.contact-hint{
  margin-top: 10px;
  opacity: 0.9;
  font-style: italic;
  color: #f2d27a;
}

/* ===== Footer ===== */
#siteFooter{
  border-top: 1px solid rgba(255,0,0,0.55);
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -20px 60px rgba(0,0,0,0.65);
  padding: 18px 20px;
}

#siteFooter .footer-inner{
  width: min(90vw, 1200px);
  margin: 0 auto;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

#siteFooter .footer-brand{
  font-weight: 900;
  letter-spacing: 1px;
}

#siteFooter .footer-meta{
  opacity: 0.85;
  font-size: 12px;
  margin-top: 4px;
}

#siteFooter .footer-links{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

#siteFooter .footer-links a{
  background: rgba(20,20,20,0.85);
  color: #fff;
  border: 1px solid rgba(255,0,0,0.70);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

#siteFooter .footer-links a:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255,0,0,0.35);
  background: rgba(255,0,0,0.12);
  border-color: rgba(255,0,0,0.95);
}

/* ===== Responsive / Mobile ===== */
@media (max-width: 1000px){
  body{ padding-top: var(--header-offset, 230px); }
}

@media (max-width: 820px){
  .member-grid{ grid-template-columns: 1fr; }
  .member-photo{ max-width: 420px; margin: 0 auto; }
}

@media (max-width: 700px){
  body{ padding-top: var(--header-offset, 215px); }

  .logo-img{ height: 70px; }
  .logo-text{ font-size: 36px; }
  header.shrink .logo-text{ font-size: 26px; }

  #content{ width: min(94vw, 1200px); }

  /* NAV: Mobile klein, 1 Zeile, nur Abkürzungen */
  #mainNav .full{ display: none; }
  #mainNav .short{ display: inline; font-weight: 900; }

  #mainNav{
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding: 6px 4px;
    margin-top: 12px;
  }

  #mainNav a{
    flex: 0 0 auto;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 14px;
    white-space: nowrap;
  }

  #mainNav::-webkit-scrollbar{ height: 0; }
}

@media (max-width: 520px){
  .contact-mail{ font-size: 18px; word-break: break-word; }
}