/* ===== kerb2011.de – Static Stylesheet ===== */

@font-face {
  font-family: 'Cinzel Decorative';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cinzel-decorative-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Cinzel Decorative';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/cinzel-decorative-700.woff2') format('woff2');
}

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/eb-garamond-400.woff2') format('woff2');
}

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/eb-garamond-400.woff2') format('woff2');
}

@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/eb-garamond-400-italic.woff2') format('woff2');
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:       #faf8f3;
  --text:     #1a1208;
  --accent:   #D65050;
  --muted:    #6b5e4e;
  --border:   #d4c9b0;
  --card-bg:  #ffffff;
  --shadow:   0 2px 12px rgba(0,0,0,0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'EB Garamond', Georgia, serif;
  background: url('img/Gross-Zimmern.png') fixed center / cover no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(250, 248, 243, 0.8);
  pointer-events: none;
  z-index: -1;
}

/* ===== HEADER ===== */
header {
  background: #D65050;
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(214, 80, 80, 0.4);
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 24px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.logo-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.site-title:hover {
  transform: scale(1.05);
}

.site-sub {
  font-size: 0.85rem;
  color: #fff;
  font-style: italic;
  line-height: 1;
  margin: 0;
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 4px 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

nav a:hover::before,
nav a.active::before {
  transform: translateX(0);
}

nav a:hover,
nav a.active {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

/* ===== MAIN ===== */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  margin-bottom: 56px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.hero:hover .hero-img {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(10,6,0,0.85));
  padding: 40px 32px 28px;
}

.hero-overlay h1 {
  font-family: 'Cinzel Decorative', serif;
  color: #f5e9c8;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 4px 16px rgba(0,0,0,0.8), 0 2px 4px rgba(0,0,0,0.6);
  animation: fadeIn 1s ease-out 0.5s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===== DREIGESTIRN ===== */
.dreigestirn {
  margin-bottom: 56px;
  text-align: center;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.dreigestirn h2,
.kerbred-teaser h2,
.bobbe h2,
.page-content h2 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 32px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  text-shadow: 0 2px 4px rgba(214, 80, 80, 0.1);
  position: relative;
  display: inline-block;
  width: 100%;
}

.dreigestirn h2::after,
.kerbred-teaser h2::after,
.bobbe h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.6s ease;
}

.dreigestirn:hover h2::after,
.kerbred-teaser:hover h2::after,
.bobbe:hover h2::after {
  width: 100%;
}

.drei-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.person {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 16px 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeInUp 0.6s ease-out both;
}

.person:nth-child(1) { animation-delay: 0.6s; }
.person:nth-child(2) { animation-delay: 0.7s; }
.person:nth-child(3) { animation-delay: 0.8s; }

.person:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 35px rgba(214, 80, 80, 0.25), 0 8px 20px rgba(0,0,0,0.15);
}

.person img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
  margin-bottom: 14px;
  display: block;
  transition: transform 0.4s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.person:hover img {
  transform: scale(1.05);
}

.person .name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.person .title {
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== TEASER ===== */
.kerbred-teaser {
  text-align: center;
  margin-bottom: 56px;
  padding: 40px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.12);
  animation: fadeInUp 0.8s ease-out 0.9s both;
  transition: all 0.3s ease;
}

.kerbred-teaser:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 35px rgba(214, 80, 80, 0.2), 0 6px 20px rgba(0,0,0,0.15);
}

.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 36px;
  background: #D65050;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(214, 80, 80, 0.3);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  background: #B84444;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(214, 80, 80, 0.4);
}

.btn:active {
  transform: translateY(0);
}

/* ===== BOBBE ===== */
.bobbe {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 1s both;
}

.bobbe img {
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.bobbe img:hover {
  transform: rotate(2deg) scale(1.05);
  box-shadow: 0 10px 30px rgba(214, 80, 80, 0.25);
}

/* ===== KERBRED PAGE ===== */
.page-content {
  max-width: 720px;
  margin: 0 auto;
}

.kerbred-image {
  float: right;
  margin: 0 0 24px 32px;
  max-width: 260px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.kerbred-text {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
}

.kerbred-text p {
  margin-bottom: 0.5em;
}

.speaker {
  font-weight: 600;
  font-style: normal;
  color: var(--accent);
  margin-top: 1.2em;
  display: block;
}

/* ===== SIMPLE PAGES ===== */
.simple-page {
  max-width: 720px;
  margin: 0 auto;
}

.simple-page h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.simple-page h2 {
  font-size: 1.2rem;
  margin: 24px 0 8px;
  color: var(--text);
}

.simple-page p {
  margin-bottom: 12px;
  color: var(--muted);
}

.simple-page a {
  color: var(--accent);
}

/* ===== FOOTER ===== */
footer {
  background: #D65050;
  color: #fff;
  text-align: center;
  padding: 24px 24px;
  font-size: 0.88rem;
  box-shadow: 0 -4px 20px rgba(214, 80, 80, 0.2);
  animation: fadeIn 1.2s ease-out;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 4px;
}

.footer-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .logo-group {
    width: 100%;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
  }

  .drei-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }

  .hero-img {
    height: 240px;
  }

  .hero-overlay h1 {
    font-size: 1.6rem;
  }

  .kerbred-image {
    float: none;
    margin: 0 auto 24px;
    display: block;
    max-width: 100%;
  }

  .site-title {
    font-size: 1.7rem;
  }
}
