/*
Theme Name: Crazy Dancers Theme
Theme URI: https://example.com/
Author: OpenAI for Thomas Rausch
Author URI: https://openai.com/
Description: Individuelles WordPress Theme für die Fastnachtsgesellschaft Crazy Dancers e.V.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: crazy-dancers-theme
*/

:root {
  --cd-blue: #2f70ff;
  --cd-blue-dark: #2458cc;
  --cd-blue-soft: #78b4d4;
  --cd-ice: #e9f4f6;
  --cd-ice-dark: #c7dee7;
  --cd-text: #2f3a40;
  --cd-muted: #5e6e78;
  --cd-white: #ffffff;
  --cd-shadow: 0 18px 40px rgba(47, 112, 255, 0.12);
  --cd-radius: 22px;
  --cd-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--cd-text);
  background: linear-gradient(180deg, #f7fbfd 0%, #ffffff 180px, #ffffff 100%);
  line-height: 1.65;
}

a { color: var(--cd-blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.cd-container,
.site-header__inner,
.site-footer__inner,
.site-main,
.posts-navigation,
.post-navigation,
.entry-header,
.entry-content,
.entry-footer,
.comments-area {
  width: min(calc(100% - 32px), var(--cd-max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(47,58,64,0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-branding img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: var(--cd-shadow);
  background: #fff;
}
.site-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}
.site-tagline {
  margin: 2px 0 0;
  font-size: .92rem;
  color: var(--cd-muted);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--cd-blue);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
}
.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.main-navigation a {
  color: var(--cd-text);
  font-weight: 700;
  font-size: .97rem;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--cd-blue);
  text-decoration: none;
}

.site-main { padding: 40px 0 70px; }
.hero {
  display: grid;
  grid-template-columns: 1.25fr .95fr;
  gap: 42px;
  align-items: center;
  margin-bottom: 42px;
}
.hero__content {
  padding: 8px 0;
}
.hero__eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--cd-blue-dark);
  font-weight: 700;
  font-size: .9rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 18px;
}
.hero p {
  font-size: 1.1rem;
  color: var(--cd-muted);
  margin: 0 0 24px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid rgba(47,58,64,.12);
  font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.cd-button:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--cd-shadow);
}
.cd-button--primary {
  background: var(--cd-blue);
  color: #fff;
  border-color: transparent;
}
.cd-button--secondary {
  background: #fff;
  color: var(--cd-text);
}
.hero__media {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--cd-shadow);
  background: linear-gradient(135deg, #dceaf7, #ffffff);
  border: 1px solid rgba(47,58,64,0.08);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

.cd-section {
  padding: 34px 0;
}
.cd-section--surface {
  background: linear-gradient(180deg, #f8fcff 0%, #eef5fb 100%);
  border-radius: 34px;
  padding: 34px;
  margin: 24px 0;
}
.cd-section__header {
  margin-bottom: 22px;
}
.cd-section__header h2,
.entry-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 10px;
}
.cd-section__header p,
.entry-meta,
.entry-content p { color: var(--cd-muted); }

.cd-grid {
  display: grid;
  gap: 20px;
}
.cd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cd-card {
  background: #fff;
  border: 1px solid rgba(47,58,64,0.08);
  border-radius: var(--cd-radius);
  padding: 22px;
  box-shadow: 0 12px 30px rgba(31,52,76,0.06);
}
.cd-card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.cd-card p:last-child { margin-bottom: 0; }
.cd-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: .83rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cd-blue-dark);
}
.cd-list {
  margin: 0;
  padding-left: 18px;
}
.cd-list li + li { margin-top: 8px; }

.cd-event-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cd-event-card__date {
  font-size: .95rem;
  font-weight: 800;
  color: var(--cd-blue-dark);
}
.cd-event-card__meta {
  font-size: .95rem;
  color: var(--cd-muted);
}

.cd-schedule {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(47,58,64,0.08);
  box-shadow: 0 10px 25px rgba(31,52,76,0.05);
}
.cd-schedule th,
.cd-schedule td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(47,58,64,0.08);
  vertical-align: top;
}
.cd-schedule th {
  background: #eef5ff;
  color: var(--cd-text);
}
.cd-schedule tr:last-child td { border-bottom: 0; }

.cd-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.cd-contact-box {
  background: #fff;
  border: 1px solid rgba(47,58,64,0.08);
  border-radius: var(--cd-radius);
  padding: 22px;
}
.cd-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cd-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--cd-blue-dark);
  font-weight: 700;
}
.cd-form {
  display: grid;
  gap: 14px;
}
.cd-form input,
.cd-form textarea,
.cd-form select {
  width: 100%;
  border: 1px solid rgba(47,58,64,0.16);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--cd-text);
  background: #fff;
}
.cd-form textarea { min-height: 160px; resize: vertical; }
.cd-form label { font-weight: 700; display: block; margin-bottom: 6px; }
.cd-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cd-form__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--cd-muted);
}
.cd-form__notice {
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
}
.cd-form__notice--success { background: #edfdf1; color: #1f6b39; }
.cd-form__notice--error { background: #fff1f1; color: #9c2c2c; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.gallery-grid img {
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(31,52,76,0.08);
}

.site-footer {
  background: linear-gradient(180deg, #263544 0%, #1e2d39 100%);
  color: rgba(255,255,255,0.85);
  margin-top: 60px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 28px;
  padding: 40px 0;
}
.site-footer a { color: #fff; }
.site-footer h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #fff;
}
.site-info {
  padding: 14px 0 28px;
  color: rgba(255,255,255,0.6);
  font-size: .92rem;
}

.page-header {
  padding: 24px 0 6px;
}
.page-header p { max-width: 760px; }
.entry-content ul { padding-left: 20px; }
.entry-content li + li { margin-top: 8px; }

@media (max-width: 960px) {
  .hero,
  .cd-grid--3,
  .cd-grid--2,
  .cd-contact-grid,
  .site-footer__inner,
  .gallery-grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
}

@media (max-width: 820px) {
  .site-header__inner { flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; }
  .main-navigation { width: 100%; display: none; }
  .main-navigation.is-open { display: block; }
  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0 2px;
  }
  .cd-section--surface { padding: 24px; }
  .cd-form__row { grid-template-columns: 1fr; }
}
