/* ====================================================
   KostümZauber Darmstadt – Professional Corporate CSS
   Brand palette: #223A5E (primary), #D14081 (secondary), #F6F1E7 (accent)
   Font stack: 'Montserrat', 'Playfair Display', system
==================================================== */

/* --- 1. 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,
 main, 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 {
  min-height: 100vh;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  color: #223A5E;
  background-color: #F6F1E7;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #223A5E; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #D14081; }
ul, ol { margin-left: 1.5em; }
li { margin-bottom: 8px; }
button, input, select, textarea { font-family: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; background: none; }

/* --- 2. FONT FAMILY & TYPE SCALE --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Montserrat', serif;
  font-weight: 700;
  color: #223A5E;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 16px; }
h4 { font-size: 1.25rem; margin-bottom: 12px; }
h5 { font-size: 1.125rem; margin-bottom: 8px; }
h6 { font-size: 1rem; margin-bottom: 8px; }
p, ul, ol { font-size: 1rem; margin-bottom: 16px; }
strong, b { font-weight: 700; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.125rem; }
}
@media (max-width: 500px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
}

/* --- 3. LAYOUT & CONTAINER --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(34, 58, 94, 0.08);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .content-wrapper { padding: 30px 12px; }
}
.text-section {
  background: #f9f9fb;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(34, 58, 94, 0.09);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  flex: 1 1 300px;
  min-width: 260px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 18px rgba(34, 58, 94, 0.16); }
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f5f8fa;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(34,58,94,0.10);
  margin-bottom: 20px;
  color: #223A5E;
  font-size: 1rem;
  max-width: 650px;
}
.testimonial-card blockquote {
  margin: 0;
  font-style: italic;
  color: #223A5E;
  font-size: 1.125rem;
}
.testimonial-card div {
  color: #223A5E;
  font-weight: 500;
  font-size: 0.98rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* --- 4. HEADER & NAVIGATION --- */
header {
  background: #223A5E;
  box-shadow: 0 2px 8px rgba(34,58,94,0.04);
  padding: 0 0;
  position: sticky;
  top: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 2vw;
}
.logo {
  display: flex;
  align-items: center;
  height: 68px;
  padding: 6px 0 6px 0;
}
.logo img {
  height: 48px;
  max-width: 180px;
  display: block;
}
nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
nav a {
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
nav a:hover, nav a:focus {
  background: #D14081;
  color: #fff;
}
nav a.btn-primary {
  background: #D14081;
  color: #fff;
  letter-spacing: 0.04em;
  margin-left: 10px;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
nav a.btn-primary:hover, nav a.btn-primary:focus {
  background: #fff;
  color: #D14081;
  box-shadow: 0 2px 8px rgba(209,64,129,0.11);
}

/* --- MOBILE NAV ---  */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: #fff;
  background: none;
  padding: 8px 16px;
  border-radius: 8px;
  z-index: 1200;
  transition: background 0.2s;
  margin-left: 12px;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #D14081;
  color: #fff;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #223A5E;
  z-index: 1500;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(100vw);
  transition: transform 0.35s cubic-bezier(.65,.02,.18,1);
  box-shadow: 0 6px 28px rgba(34,58,94,0.19);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 24px 24px 0 auto;
  background: none;
  color: #fff;
  font-size: 2.25rem;
  opacity: 0.88;
  border-radius: 8px;
  padding: 6px 12px;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #D14081;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 40px 30px 0 30px;
  gap: 16px;
  align-items: flex-start;
}
.mobile-nav a {
  display: block;
  margin-bottom: 0;
  color: #fff;
  background: none;
  padding: 18px 0;
  border-radius: 8px;
  font-size: 1.175rem;
  font-weight: 500;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #D14081; color: #fff;
}

@media (max-width: 1100px) {
  nav { gap: 7px; }
  nav a { font-size: 0.98rem; }
}
@media (max-width: 950px) {
  nav a:not(.btn-primary) { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (max-width: 650px) {
  header { padding: 0; }
  .logo { height: 54px; }
}

/* --- 5. BUTTONS --- */
.btn-primary, a.btn-primary, button.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  font-size: 1.08rem;
  background: #223A5E;
  color: #fff;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  box-shadow: 0 2px 8px rgba(34,58,94,0.10);
  transition: background 0.19s, color 0.15s, transform 0.14s, box-shadow 0.21s;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 8px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #D14081;
  color: #fff;
  transform: translateY(-2px) scale(1.023);
  box-shadow: 0 5px 24px rgba(209,64,129,0.17);
}

/* --- 6. FOOTER --- */
footer {
  background: #223A5E;
  color: #fff;
  padding: 50px 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin-top: 40px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #D14081;
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  font-size: 0.98rem;
}
.footer-contact img { width: 16px; height: 16px; vertical-align: middle; margin-right: 8px; filter: brightness(0) invert(1); }
footer .btn-primary {
  margin: 26px auto 0 auto;
  background: #D14081;
  color: #fff;
}
footer .btn-primary:hover, footer .btn-primary:focus {
  background: #fff;
  color: #D14081;
}

@media (max-width: 700px) {
  .footer-nav { gap: 8px; }
  .footer-contact { font-size: 0.93rem; gap: 6px; }
  footer { padding: 36px 0 24px 0; }
}

/* --- 7. MISC/UTILITY --- */
.form-hint {
  font-size: 13px;
  color: #888ba6;
  margin-top: 6px;
  display: block;
}
blockquote { quotes: none; }
blockquote:before, blockquote:after { content: none; }

/* --- 8. COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #223A5E;
  color: #fff;
  z-index: 2990;
  padding: 30px 16px 22px 16px;
  box-shadow: 0 -2px 18px rgba(34,58,94,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  animation: banner-slideup 0.6s cubic-bezier(.42,0,.58,1);
}
@keyframes banner-slideup {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.cookie-banner .btn-consent {
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  border: none;
  margin: 0 2px;
  background: #fff;
  color: #223A5E;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner .btn-consent.accept {
  background: #D14081;
  color: #fff;
}
.cookie-banner .btn-consent.accept:hover, .cookie-banner .btn-consent.accept:focus {
  background: #fff;
  color: #D14081;
  border: 1.5px solid #D14081;
}
.cookie-banner .btn-consent.reject {
  background: #f0f2f7;
  color: #223A5E;
}
.cookie-banner .btn-consent.reject:hover, .cookie-banner .btn-consent.reject:focus {
  background: #D14081;
  color: #fff;
  border: 1.5px solid #D14081;
}
.cookie-banner .btn-consent.settings {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
}
.cookie-banner .btn-consent.settings:hover, .cookie-banner .btn-consent.settings:focus {
  background: #fff;
  color: #223A5E;
}

.cookie-modal-overlay {
  position: fixed;
  z-index: 3100;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,58,94,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein 0.45s cubic-bezier(.32,1,.68,1);
}
@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #223A5E;
  padding: 40px 28px;
  border-radius: 16px;
  box-shadow: 0 4px 44px rgba(34,58,94,0.21);
  min-width: 330px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  animation: dropfadein 0.4s cubic-bezier(.5,-0.2,.6,1.2);
}
@keyframes dropfadein {
  from { opacity: 0; transform: translateY(-60px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 20px;
  top: 12px;
  font-size: 1.5rem;
  color: #8895ad;
  background: none;
  border: none;
  opacity: 0.72;
  transition: color 0.16s, opacity 0.14s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: #D14081;
  opacity: 1.0;
}
.cookie-modal h3 {
  font-size: 1.25rem;
  font-family: inherit;
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f8fa;
  border-radius: 8px;
  padding: 12px 18px;
  box-shadow: 0 1px 4px rgba(34,58,94,0.08);
  font-size: 1rem;
  font-weight: 500;
}
.cookie-category input[type='checkbox']:disabled + label {
  opacity: 0.6;
}
.cookie-category label {
  user-select: none;
}

/* --- 9. RESPONSIVE PATTERNS --- */
@media (max-width: 900px) {
  .container {
    max-width: 90vw;
    padding: 0 8px;
  }
  .content-wrapper { padding: 24px 8px; }
}
@media (max-width: 650px) {
  .header .container { flex-direction: column; gap: 14px; }
  .footer-contact { font-size: 0.85rem; }
}
@media (max-width: 540px) {
  .section { padding: 22px 7px; }
  .card { padding: 17px 7px; }
  .cookie-modal { padding: 20px 8px; min-width: 225px; }
}

/* ---- 10. SPACING & FLEX ENFORCER ---- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ---- 11. ACCESSIBILITY & UTILITIES ---- */
:focus {
  outline: 2px solid #D14081;
  outline-offset: 1px;
}
[disabled], .disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---- 12. MICRO-INTERACTIONS ---- */
.card, .testimonial-card, .cookie-modal, .btn-primary, nav a, .footer-nav a {
  transition: box-shadow 0.19s, transform 0.15s, color 0.18s, background 0.2s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 20px rgba(34,58,94,0.15);
  transform: translateY(-2px) scale(1.012);
}

/* Hide scrollbar in cookie modal on small screens */
.cookie-modal::-webkit-scrollbar {
  width: 7px;
  background: #f0f0f0;
}
.cookie-modal::-webkit-scrollbar-thumb {
  background: #d8dfe8;
  border-radius: 8px;
}

/* For good measure, add proper spacing for large sections */
@media (max-width: 820px) {
  .testimonial-card { flex-direction: column; align-items: flex-start; padding: 18px; }
}

/* ---- 13. PRINT ---- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  .content-wrapper, .section { background: #fff !important; box-shadow: none !important; }
}
