/* ===== CSS RESET & NORMALIZATION ===== */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F9F7F7;
  color: #263142;
  min-height: 100vh;
  letter-spacing: 0.02em;
  font-size: 1rem;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #145374;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #5DA3A3;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
strong {
  font-weight: 700;
}

/* ===== BRAND VARIABLES (FALLBACK FOR OLDER BROWSERS) ===== */
:root {
  --color-primary: #145374;
  --color-secondary: #5DA3A3;
  --color-accent: #F9F7F7;
  --color-bg: #F9F7F7;
  --color-bg-section: #f4f7fa;
  --color-text: #263142;
  --color-muted: #798fa3;
  --color-border: #e0e7ef;
  --color-btn-hover: #0C3550;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --shadow-main: 0 4px 20px rgba(38,49,66,0.06);
  --shadow-card: 0 2px 8px rgba(38,49,66,0.07);
  --radius-main: 14px;
  --radius-btn: 8px;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 16px;
}
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-secondary);
  font-size: 1rem;
}
p, ul, ol, li, span {
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.6;
}

@media (min-width: 600px) {
  h1 { font-size: 2.875rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.25rem; }
}

/* ===== GENERAL CONTAINER, LAYOUT, FLEX ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-section);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
}
@media (min-width: 768px) {
  .section {
    padding: 60px 40px;
  }
}

/* ===== HEADER ===== */
header {
  background: #fff;
  box-shadow: 0 2px 18px rgba(20,83,116,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 0;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--color-primary);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-bottom-color 0.15s;
}
header nav a:hover, header nav a:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
  text-decoration: none;
}
.cta-btn {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-btn);
  padding: 12px 32px;
  font-size: 1.09rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(20,83,116,0.06);
  transition: background 0.22s, box-shadow 0.18s, transform 0.1s;
  margin-left: 16px;
  display: inline-block;
  letter-spacing: 0.01em;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-btn-hover);
  color: #fff;
  box-shadow: 0 6px 24px rgba(20,83,116,0.10);
  transform: translateY(-1px) scale(1.03);
  outline: none;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 22px;
  right: 18px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(20,83,116,0.12);
  font-size: 2rem;
  cursor: pointer;
  z-index: 301;
  transition: background 0.2s, transform 0.13s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
}
@media (min-width: 1024px) {
  .mobile-menu-toggle { display: none; }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 300;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.33s cubic-bezier(.3,1.2,.2,1), opacity 0.18s;
  box-shadow: 0 4px 32px rgba(20,83,116,0.09);
  padding-top: 18px;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: var(--color-primary);
  align-self: flex-end;
  margin: 12px 26px 0 0;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 38px 36px;
  margin-top: 12px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--color-primary);
  font-weight: 600;
  background: none;
  border-radius: 6px;
  padding: 12px 15px;
  min-width: 160px;
  transition: background 0.18s, color 0.16s;
  margin-left: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  header nav, header .cta-btn {
    display: none !important;
  }
}

/* ===== MAIN CONTENT SECTIONS ===== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.13s, transform 0.14s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 28px rgba(20,83,116,0.11);
  transform: translateY(-2px) scale(1.02);
}

.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;
    gap: 18px;
    align-items: flex-start;
  }
}

/* ===== FEATURE GRID (Index) ===== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  padding: 28px 22px 22px 22px;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 260px;
  transition: box-shadow 0.15s, transform 0.09s;
}
.feature-item img {
  width: 44px;
  height: 44px;
}
.feature-item h3 {
  margin-bottom: 0;
  font-size: 1.13rem;
}
.feature-item:hover {
  box-shadow: 0 6px 22px rgba(20,83,116,0.12);
  transform: translateY(-2px) scale(1.02);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  padding: 20px 28px 20px 22px;
  margin-bottom: 20px;
  font-style: italic;
  color: #222f39;
  font-family: var(--font-body);
  border-left: 6px solid var(--color-secondary);
  transition: box-shadow 0.14s;
}
.testimonial-card span {
  font-weight: 500;
  color: var(--color-muted);
  font-style: normal;
  font-size: 0.98rem;
  margin-left: 18px;
}
.testimonial-card:hover {
  box-shadow: 0 4px 20px rgba(20,83,116,0.16);
}

/* ====== SERVICE CARDS / BLOG PREVIEW ====== */
.service-section, .blog-list, .team-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.service-item, .blog-preview, .team-member {
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  padding: 26px 22px;
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 320px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.13s, transform 0.10s;
}
.service-item:hover, .blog-preview:hover, .team-member:hover {
  box-shadow: 0 6px 22px rgba(20,83,116,0.13);
  transform: scale(1.015);
}
.blog-preview .tags {
  color: var(--color-secondary);
  background: #eef3f5;
  padding: 4px 14px;
  font-size: 0.95rem;
  border-radius: 8px;
  margin-top: 10px;
}

/* ===== LISTS, FAQ, TIPS ===== */
.faq-list, .tips-section, .steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  padding: 17px 21px;
}
.tips-section ul, .steps-list ol {
  list-style: disc inside;
  padding-left: 22px;
  color: var(--color-primary);
}
.tips-section li, .steps-list li {
  font-family: var(--font-body);
  color: var(--color-text);
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== ABOUT PAGE TEAM ===== */
.team-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  justify-content: flex-start;
}
.team-member {
  min-width: 200px;
  max-width: 300px;
  font-family: var(--font-body);
}

/* ===== CONTACT PAGE ===== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.contact-details span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.06rem;
  color: var(--color-primary);
}
.contact-details img {
  width: 22px;
  height: 22px;
}

/* ===== FOOTER ===== */
footer {
  background: #ebf2f6;
  border-top: 1px solid #dee4ee;
  margin-top: 40px;
  padding-top: 32px;
  padding-bottom: 32px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
footer nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--color-primary);
  font-size: 0.99rem;
  font-family: var(--font-display);
  padding: 2px 0;
  border-bottom: 2px solid transparent;
  transition: border-bottom-color 0.13s, color 0.2s;
}
footer nav a:hover, footer nav a:focus {
  border-bottom: 2px solid var(--color-secondary);
  color: var(--color-secondary);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.97rem;
  color: var(--color-muted);
}
.footer-contact img {
  width: 18px;
  height: 18px;
}
footer img[alt="ZeitZauber"], footer img[alt="ZeitZauber Logo"], footer img[alt="ZeitZauber Markenlogo"] {
  width: 62px;
  margin-bottom: 5px;
}

/* ===== COOKIE BANNER & MODAL ===== */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(38,49,66,0.10);
  z-index: 490;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 22px 20px;
  transition: transform 0.34s, opacity 0.23s;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
#cookie-banner.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
#cookie-banner p {
  font-size: 1.05rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 8px;
}
.cookie-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-btn {
  font-family: var(--font-display);
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px 22px;
  font-size: 1.07rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(38,49,66,0.07);
  margin-top: 0.2em;
  transition: background 0.2s, color 0.18s;
}
.cookie-btn.accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-btn-hover);
}
.cookie-btn.reject {
  background: #eaf2f8;
  color: var(--color-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #d7e3ee;
  color: var(--color-secondary);
}
.cookie-btn.settings {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #398383;
  color: #fff;
}

/* Cookie Modal */
#cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(38,49,66,0.26);
  align-items: center;
  justify-content: center;
}
#cookie-modal-overlay.active {
  display: flex;
}
#cookie-modal {
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: 0 8px 34px rgba(38,49,66,0.13);
  padding: 34px 28px 26px 28px;
  margin: 10vw 5vw;
  max-width: 420px;
  width: 95%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  position: relative;
  animation: fadeInModal 0.21s;
}
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}
#cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 11px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 7px 0;
}
.cookie-toggle {
  appearance: none;
  width: 44px;
  height: 24px;
  background: #eaf2f8;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-toggle:checked {
  background: var(--color-secondary);
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.21s;
  box-shadow: 0 1px 2px rgba(30,38,69,0.14);
}
.cookie-toggle:checked::before {
  transform: translateX(20px);
}
.cookie-modal-btn-row {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 10px;
}
#cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: color 0.16s;
}
#cookie-modal-close:hover, #cookie-modal-close:focus {
  color: var(--color-secondary);
}

/* ===== BUTTONS GENERIC ===== */
button, .button {
  font-family: var(--font-display);
  border: none;
  outline: none;
  border-radius: var(--radius-btn);
  padding: 10px 24px;
  cursor: pointer;
  font-weight: 600;
  background: var(--color-primary);
  color: #fff;
  transition: background 0.14s, color 0.12s, box-shadow 0.11s;
}
button:disabled {
  background: #d3dbe3;
  color: #939393;
  cursor: not-allowed;
}
.button-secondary {
  background: var(--color-secondary);
}
.button-secondary:hover, .button-secondary:focus {
  background: #398383;
}

/* ===== MICRO-INTERACTIONS ===== */
.card, .feature-item, .service-item, .team-member, .testimonial-card, .blog-preview {
  transition: box-shadow 0.13s, transform 0.12s;
}
.card:hover, .feature-item:hover, .service-item:hover, .team-member:hover, .testimonial-card:hover, .blog-preview:hover {
  box-shadow: 0 8px 26px rgba(38,49,66,0.14);
  transform: translateY(-2px) scale(1.016);
}
.cta-btn, .cookie-btn {
  transition: background 0.17s, color 0.13s, transform 0.12s;
}
.cta-btn:active, .cookie-btn:active {
  transform: scale(0.96);
}

/* ====== RESPONSIVE ADJUSTMENTS ====== */
@media (max-width: 900px) {
  .feature-grid, .service-section, .team-section, .card-container, .blog-list {
    justify-content: center;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.25rem; }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 38px;
  }
  .feature-grid, .service-section, .team-section, .card-container, .blog-list {
    flex-direction: column;
    gap: 18px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 10px;
  }
  header .container {
    flex-direction: row;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ====== PRINT STYLES (Optional, reduce ink) ====== */
@media print {
  header, footer, .mobile-menu, #cookie-banner, #cookie-modal-overlay { display: none !important; }
  .section, .card, .feature-item, .service-item, .testimonial-card, .team-member, .blog-preview { box-shadow: none !important; background: #fff !important; }
}

/* ===== ACCESSIBILITY: FOCUS OUTLINES ===== */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, #cookie-modal-close:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
}

/* ====== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.align-center { align-items: center; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ====== MINIMUM SPACING FOR CARDS/SECTIONS ====== */
.card, .feature-item, .service-item, .testimonial-card, .team-member, .blog-preview {
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ====== ENSURE FLEX ONLY, NEVER GRID/COLUMN ====== */
/* (No grid, grid-*, columns, or column-*) */
