/* CSS RESET & NORMALIZE */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; background: #F7F6F2; color: #222; -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg { display: inline-block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; }
button { background: none; border: none; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 12px 8px; text-align: left; }

/* BRAND COLORS */
:root {
  --color-primary: #1B2838;
  --color-secondary: #8DA0B2;
  --color-accent: #FFD66B;
  --color-bg: #F7F6F2;
  --color-muted: #E5E3DC;
  --color-card-bg: #fff;
  --color-border: #DFDDD8;
}

/* TYPOGRAPHY */
@import url('https://fonts.googleapis.com/css?family=Merriweather:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700&display=swap');

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--color-primary);
  font-size: 16px;
  background: var(--color-bg);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-primary);
  line-height: 1.2;
}
h1 { font-size: 2.75rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.4rem; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1.15rem; }
p, li, ul {
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 14px;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.8;
}
.subheadline { font-size: 1.14rem; color: var(--color-secondary); font-weight: 400; margin-bottom:18px; }
strong, b { font-weight: 700; color: var(--color-primary); }
small { font-size: 0.94rem; }
a { color: var(--color-secondary); transition: color .2s; }
a:hover, a:focus { color: var(--color-accent); text-decoration: underline; }


/* ----------------------------- */
/* CONTAINER LAYOUTS & SPACING   */
/* ----------------------------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 1000px) {
  .container { max-width: 94vw; }
  section { padding: 28px 8px; }
}
@media (max-width: 768px) {
  section { padding: 24px 0; margin-bottom: 36px; }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 768px) {
  .content-wrapper {
    gap: 18px; 
  }
}

.text-section {
  max-width: 670px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }
}

/* Flex Layouts */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 18px 0 rgba(27,40,56,0.08);
  border: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 20px;
  min-width: 240px;
  flex: 1 1 280px;
  transition: box-shadow .25s, transform .18s;
}
.card:hover {
  box-shadow: 0 4px 32px 0 rgba(27,40,56,0.17);
  transform: translateY(-2px) scale(1.012);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.feature-grid > div {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(27,40,56,0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 28px 24px 24px 24px;
  min-width: 220px;
  flex: 1 1 220px;
  transition: box-shadow .24s, transform .18s;
}
.feature-grid > div img {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  opacity: 0.95;
}
.feature-grid > div h3 {
  font-size: 1.17rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}
.feature-grid > div:hover {
  box-shadow: 0 4px 32px 0 rgba(27,40,56,0.12);
  transform: translateY(-1.5px) scale(1.008);
}
@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 22px;
  }
  .feature-grid > div { min-width: 0; width: 100%; }
}

.testimonial-card {
  background: var(--color-muted);
  color: var(--color-primary);
  border-radius: 16px;
  box-shadow: 0 3px 14px 0 rgba(27,40,56,0.09);
  padding: 20px 26px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  font-size: 1.03rem;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.25s;
}
.testimonial-card strong { color: var(--color-primary); }
.testimonial-card img { width: 22px; height: 22px; margin-right: 4px; vertical-align: middle; }
.testimonial-card p { font-style: italic; color: var(--color-primary); font-size: 1.08rem; }
.testimonial-card span { color: var(--color-secondary); font-size: 1.02rem; }
.testimonial-card:hover {
  box-shadow: 0 4px 24px 0 rgba(27,40,56,0.16);
}

/* Case study cards (references.html) */
.case-study-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.case-study-grid > div {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(27,40,56,0.07);
  padding: 20px 20px 18px;
  flex: 1 1 260px;
  min-width: 220px;
  transition: box-shadow 0.22s;
}
.case-study-grid > div:hover {
  box-shadow: 0 3px 22px 0 rgba(27,40,56,0.11);
}
@media (max-width: 900px) {
  .case-study-grid {
    flex-direction: column;
    gap: 18px;
  }
}

/* FOOTER */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 46px 0 24px 0;
  font-size: 1rem;
  letter-spacing: 0.01em;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
  align-items: center;
}
footer nav {
  display: flex;
  gap: 28px;
  margin-bottom: 14px;
}
footer nav a {
  color: #f6f3e7;
  opacity: 0.97;
  font-family: 'Merriweather', serif;
  font-size: 1.07rem;
  position: relative;
  transition: color .18s;
}
footer nav a:hover { color: var(--color-accent); }
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
}
.footer-contact img { width: 18px; height: 18px; margin-right: 6px; filter: grayscale(10%) brightness(1.6); vertical-align: middle; }
footer small {
  opacity: 0.7;
  letter-spacing: 0.02em;
}
@media (max-width: 900px) {
  footer nav { flex-wrap: wrap; gap: 18px; }
  .footer-contact { flex-direction: column; gap: 7px; }
  footer .container { gap: 11px; }
}


/* NAVIGATION */
header {
  background: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0; left:0; right:0;
  z-index: 1000;
  box-shadow: 0 2px 12px 0 rgba(27,40,56,0.05);
}
header .container {
  display: flex;
  align-items: center;
  gap: 34px;
  justify-content: flex-start;
  min-height: 80px;
  position: relative;
}
header a img[alt="WortKunst Bühne"] {
  width: 80px;
  max-width: 60vw;
  margin-right: 18px;
  vertical-align: middle;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1 1 auto;
}
header nav a {
  font-family: 'Merriweather', serif;
  color: var(--color-primary);
  font-size: 1.08rem;
  letter-spacing: 0.006em;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color .17s, background .15s;
}
header nav a:hover,
header nav a:focus {
  color: var(--color-accent);
  background: #faf6ea;
  text-decoration: none;
}

.cta-button {
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: 'Merriweather', serif;
  font-weight: 700;
  padding: 11px 32px;
  margin-left: 24px;
  border-radius: 32px;
  border: none;
  box-shadow: 0 2px 6px 0 rgba(27,40,56,0.07);
  font-size: 1.07rem;
  cursor: pointer;
  display: inline-block;
  transition: background .20s, color .17s, box-shadow .20s, transform .18s;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 3px 20px 0 rgba(27,40,56,0.11);
  transform: translateY(-2px) scale(1.014);
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  margin-left: auto;
  font-size: 2.1rem;
  color: var(--color-primary);
  background: transparent;
  border: none;
  padding: 6px 10px;
}
@media (max-width: 900px) {
  header nav, .cta-button { display: none; }
  .mobile-menu-toggle { display: inline-block; }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(27,40,56,0.98);
  box-shadow: 0 6px 32px 0 rgba(27,40,56,0.24);
  z-index: 9999;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.4,.01,.45,.99);
  transform: translateX(-100vw);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 14px 0 16px 18px;
  align-self: flex-start;
  font-size: 2rem;
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  transition: color .16s;
}
.mobile-menu-close:hover {
  color: #fff3c1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 12px 0 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Merriweather', serif;
  font-size: 1.27rem;
  padding: 9px 0;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: rgba(255,214,107,0.07);
}
@media (max-width: 480px) {
  .mobile-nav { padding-left: 18px; gap: 16px; }
  .mobile-menu-close { font-size: 1.5rem; }
}

/* Show/hide mobile menu with open class */
body.mobile-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100vw;
}

/* ------------------------------- */
/* TABLES (for EVENTS page)        */
/* ------------------------------- */
table {
  width: 100%;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.05rem;
  border-collapse: collapse;
  background: var(--color-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px 0 rgba(27,40,56,0.06);
  margin-bottom: 28px;
}
th, td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--color-border);
}
th {
  background: var(--color-secondary);
  color: #fff;
  font-family: 'Merriweather', serif;
  font-size: 1.09rem;
  font-weight: 700;
}
tr:last-child td { border-bottom: none; }

/* FEATURE ITEM (for future) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid var(--color-border);
  background: var(--color-card-bg);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px 0 rgba(27,40,56,0.06);
}

/* FORMS (contact, newsletter) */
input, textarea, select {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 10px 12px;
  margin-bottom: 16px;
  width: 100%;
  font-size: 1rem;
  background: #fcfcfa;
  box-shadow: 0 0.5px 0.5px 0 rgba(27,40,56,0.04);
  transition: border .18s, box-shadow .18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 2px 10px 0 rgba(141, 160, 178, 0.09);
  outline: none;
}
label { display: block; font-weight: 600; margin-bottom: 7px; }

/* LISTS */
ul, ol {
  margin-bottom: 18px;
  padding-left: 22px;
}
ul li::marker, ol li::marker {
  color: var(--color-accent);
}
ul li { margin-bottom: 8px; }
ol li { margin-bottom: 8px; }

/* MISC HEADLINE SPACING */
h1 + h2, h2 + h3, h2 + ul, h2 + p, h3 + p {
  margin-top: 0.5em;
}

/* ------------- */
/* RESPONSIVE    */
/* ------------- */
@media (max-width: 900px) {
  .container { max-width: 96vw; }
  header .container { gap: 12px; min-height: 65px; }
  header a img[alt="WortKunst Bühne"] { width: 130px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .footer-contact { flex-direction: column; gap: 6px; }
  .feature-grid { gap: 14px; }
  .card-container, .content-grid, .case-study-grid { gap: 12px; }
  .card, .case-study-grid > div, .feature-grid > div { padding: 16px 8px 14px 10px; }
  .testimonial-card { padding: 14px 8px; }
  footer { padding: 32px 4px 14px 4px; }
}

/* Calendar/Events table adjustments */
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr { display: block; width: 100%; }
  thead tr { display: none; }
  tbody tr { margin-bottom: 16px; background: var(--color-card-bg); border-radius: 8px; box-shadow: 0 1px 4px 0 rgba(27,40,56,0.09); }
  td { padding: 9px 4px; border: none; }
  td:before { content: attr(data-label); font-weight: bold; display: block; margin-bottom: 2px; color: var(--color-secondary); font-family: 'Merriweather', serif; }
}

/* ------------------------------ */
/* COOKIE CONSENT BANNER & MODAL  */
/* ------------------------------ */
.cookie-consent-banner {
  position: fixed;
  left: 0; right:0; bottom: 0;
  width: 100vw;
  background: var(--color-card-bg);
  color: var(--color-primary);
  box-shadow: 0 -2px 20px 0 rgba(27,40,56,0.11);
  border-top: 1px solid var(--color-border);
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 22px 18px 22px 18px;
  font-size: 1.01rem;
  animation: cookie-fadein .56s ease;
  flex-wrap: wrap;
}
@keyframes cookie-fadein {0% { transform: translateY(40px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; }}
.cookie-consent-banner p { margin: 0 0 6px 0; color: var(--color-primary); }
.cookie-consent-buttons {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 7px 22px;
  border-radius: 20px;
  border: 1.5px solid var(--color-secondary);
  background: var(--color-secondary);
  color: #fff;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  margin: 0 4px;
  cursor: pointer;
  transition: background .16s, color .12s, border .12s, box-shadow .15s;
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}
.cookie-btn.reject {
  background: var(--color-muted);
  color: var(--color-primary);
  border-color: var(--color-muted);
}
.cookie-btn.settings {
  background: transparent;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  box-shadow: 0 2px 8px 0 rgba(141,160,178,0.18);
  filter: brightness(1.18);
}

/* COOKIE MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(27,40,56,0.52);
  z-index: 10110;
  align-items: center;
  justify-content: center;
  animation: cookie-fadein .36s ease;
}
.cookie-modal.open { display: flex; }
.cookie-modal-content {
  background: var(--color-card-bg);
  border-radius: 24px;
  box-shadow: 0 4px 36px 0 rgba(27,40,56,0.15);
  padding: 36px 28px 28px 28px;
  width: 96vw; max-width: 420px;
  color: var(--color-primary);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookie-modal-pop .44s cubic-bezier(.4,.01,.67,.99);
}
@keyframes cookie-modal-pop {
  0% { transform: scale(0.94) translateY(34px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-content h3 { font-size: 1.22rem; margin-bottom: 6px; }
.cookie-modal-content label { display: flex; align-items: center; gap: 9px; margin-bottom:8px; font-size:1rem; }

.cookie-modal-content input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 1.1em; height: 1.1em;
}
.cookie-modal-close {
  position: absolute;
  right: 20px; top: 20px;
  background: none;
  border: none;
  font-size: 1.55rem;
  color: var(--color-secondary);
  cursor: pointer;
  transition: color .15s;
}
.cookie-modal-close:hover { color: var(--color-accent); }

.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--color-muted);
  border-radius: 12px;
  padding: 16px 14px;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.04rem;
}
.cookie-category.essential input[type="checkbox"] {
  accent-color: var(--color-accent);
}
.cookie-category.essential label {
  opacity: 0.65;
  font-style: italic;
}

/* Modal Buttons */
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 480px) {
  .cookie-consent-banner { flex-direction: column; align-items: flex-start; gap: 14px; padding:12px 5px; }
  .cookie-modal-content { padding: 20px 8px 16px 8px; }
}

/* Misc Helpers */
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }


/* SMOOTH TRANSITIONS/MICRO-INTERACTIONS */
input, textarea, button, select, .cta-button, a, .card, .case-study-grid > div, .feature-grid > div, .testimonial-card {
  transition: box-shadow .21s, color .17s, background .16s, border .14s, transform .18s;
}

/* ELEGANT SHADOWS */
.shadow-soft {
  box-shadow: 0 3px 21px 0 rgba(27,40,56,0.06);
}

/* FOCUS VISIBLE for Accessibility */
button:focus-visible, a:focus-visible, .cta-button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* End of CSS */