/* -------------------- CSS RESET & BASE -------------------- */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #FFF7FA;
  color: #27364d;
  min-height: 100vh;
}
ul,
ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* -------------------- FONT IMPORT -------------------- */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,700;0,900;1,700&family=Roboto:wght@400;500;700&display=swap');

:root {
  --brand-primary: #002B55;
  --brand-secondary: #FDB813;
  --brand-accent: #FFFFFF;
  --pastel-rose: #F9EAF3;
  --pastel-blue: #E3F1FC;
  --pastel-yellow: #FFF7D2;
  --pastel-mint: #E3F9F4;
  --pastel-violet: #F3F0FC;
  --pastel-salmon: #FFD8CB;
  --gray-100: #f9faff;
  --gray-200: #f4f6fa;
  --gray-300: #eaeef4;
  --gray-500: #bfcada;
  --text-dark: #253040;
  --text-body: #27364d;
  --text-light: #5f6b82;
  --shadow-lg: 0 8px 36px 0 rgba(30,42,60,.13);
  --shadow-md: 0 2px 12px 0 rgba(30,42,60,0.11);
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

/* -------------------- CONTAINER & SPACING -------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--pastel-rose);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    gap: 20px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* -------------------- TYPOGRAPHY -------------------- */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Merriweather', serif;
  color: var(--brand-primary);
  font-weight: 900;
  line-height: 1.19;
  letter-spacing: -.01em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; }
p, li, label, input, select, span {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--text-body);
}
p {
  margin-bottom: 8px;
}
strong { font-weight: 700; }
em { font-style: italic; }

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.07rem; }
}

/* -------------------- HEADER & NAV -------------------- */
header {
  width: 100%;
  box-shadow: 0 2px 16px 0 rgba(130,150,200,.09);
  background: linear-gradient(180deg, var(--pastel-blue) 60%, #fff 100%);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  justify-content: space-between;
}
header img[alt="Bayern Lokalpresse"] {
  height: 38px;
  width: auto;
  margin-right: 16px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Roboto', sans-serif;
  color: var(--brand-primary);
  font-weight: 500;
  font-size: 1.08rem;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  transition: background var(--transition), color var(--transition);
}
header nav a:hover,
header nav a:focus {
  background: var(--pastel-yellow);
  color: var(--brand-primary);
}
.cta-button {
  background: var(--brand-primary);
  color: var(--brand-accent);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  padding: 12px 32px;
  box-shadow: 0 4px 16px 0 rgba(0,43,85,0.12);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
  display: inline-block;
  margin-left: 24px;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 2px 24px 0 rgba(253,184,19,0.14);
}

/* Header responsiveness */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 1024px) {
  header .container {
    gap: 10px;
  }
  header nav {
    gap: 10px;
  }
  .cta-button {
    margin-left: 10px;
    padding: 10px 18px;
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  header nav,
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--brand-primary);
    font-size: 2.4rem;
    cursor: pointer;
    line-height: 36px;
    z-index: 100;
    border-radius: 16px;
    padding: 2px 6px 0 6px;
    transition: background var(--transition);
  }
  .mobile-menu-toggle:active,
  .mobile-menu-toggle:focus {
    background: var(--pastel-blue);
  }
}

/* -------------------- MOBILE MENU -------------------- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(227,241,252,0.96);
  box-shadow: 0 8px 32px 0 rgba(30,42,60,.18);
  transform: translateX(-100%);
  transition: transform 0.38s var(--transition);
  z-index: 201;
  padding: 28px 18px 18px 18px;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--brand-primary);
  cursor: pointer;
  margin-bottom: 24px;
  border-radius: 14px;
  width: 36px;
  height: 36px;
  transition: background var(--transition);
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--pastel-rose);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.3rem;
  padding: 10px 0 6px 0;
  border-bottom: 1px solid var(--gray-300);
  color: var(--brand-primary);
  font-family: 'Merriweather', serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  outline: none;
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: var(--brand-secondary);
  background: var(--pastel-yellow);
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* -------------------- MAIN & CARDS -------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.card {
  background: var(--pastel-blue);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
  padding: 22px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
  min-width: 260px;
  max-width: 360px;
}
.card:hover {
  box-shadow: 0 8px 44px 0 rgba(0,43,85,0.12);
  transform: translateY(-2px) scale(1.025);
}
@media (max-width: 900px) {
  .card-container {
    gap: 16px;
  }
  .card {
    max-width: 100%;
    min-width: 80%;
  }
}
@media (max-width: 520px) {
  .card-container {
    gap: 6px;
  }
  .card {
    padding: 16px 10px;
    margin-bottom: 10px;
  }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* ----------------- TESTIMONIALS ----------------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--pastel-yellow);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px 0 rgba(253,184,19,0.13);
  margin-bottom: 20px;
  max-width: 500px;
}
.testimonial-card p {
  font-size: 1.06rem;
  color: var(--text-dark);
  font-weight: 500;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--text-body);
  font-style: italic;
}
@media (max-width: 600px) {
  .testimonial-card {
    max-width: 100%;
    padding: 16px;
    gap: 8px;
  }
}

/* ----------------- FEATURES & LISTS ----------------- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--pastel-mint);
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  box-shadow: 0 1px 6px 0 rgba(66,200,160,0.07);
  margin-bottom: 20px;
}

ul > li {
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--text-body);
}
ul > li strong {
  color: var(--brand-primary);
}

/* ----------- FORMS, INPUTS, BUTTONS ----------- */
input[type="search"], select {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 1rem;
  background: var(--pastel-mint);
  transition: border var(--transition), background var(--transition);
  margin-top: 6px;
}
input[type="search"]:focus, select:focus {
  border: 1.5px solid var(--brand-secondary);
  background: var(--pastel-yellow);
}
button {
  background: var(--pastel-violet);
  color: var(--brand-primary);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  border: none;
  cursor: pointer;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 1px 4px 0 rgba(121,87,255,0.09);
}
button:focus, button:hover {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  box-shadow: 0 2px 12px 0 rgba(253,184,19,0.13);
}

/* ------------- FOOTER ------------- */
footer {
  background: linear-gradient(180deg, var(--pastel-mint) 80%, var(--gray-100) 100%);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  box-shadow: 0 -2px 32px 0 rgba(100,160,180,0.06);
  margin-top: 62px;
}
footer section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 30px 0 20px 0;
}
footer .footer-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  justify-content: center;
  margin-bottom: 18px;
}
footer .footer-nav a {
  font-size: .99rem;
  color: var(--brand-primary);
  opacity: 0.86;
  transition: color var(--transition), opacity var(--transition);
  border-radius: 10px;
  padding: 4px 10px;
  font-family: 'Roboto', sans-serif;
}
footer .footer-nav a:focus, footer .footer-nav a:hover {
  color: var(--brand-secondary);
  opacity: 1;
  background: var(--pastel-yellow);
}
footer .content-wrapper {
  display: flex;
  gap: 58px;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer .content-wrapper > div {
  min-width: 200px;
  flex: 1 1 240px;
  margin-bottom: 20px;
}
footer h3 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand-primary);
  margin-bottom: 10px;
}
footer img[alt]
{ height: 1.3em; width: auto; margin-right: 8px; display: inline-block; vertical-align: middle; }
footer a[aria-label] img {
  height: 29px;
  width: 29px;
  margin-right: 2px;
  border-radius: 13px;
  display: inline-block;
  background: var(--pastel-rose);
  box-shadow: 0 2px 8px 0 rgba(206,184,255,.09);
  transition: box-shadow .18s;
}
footer a[aria-label]:hover img, footer a[aria-label]:focus img {
  background: var(--pastel-yellow);
  box-shadow: 0 6px 24px 0 rgba(253,184,19,0.09);
}
footer .cta-button {
  margin-left: 0;
  margin-top: 6px;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    gap: 24px;
  }
}
@media (max-width: 650px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 10px;
  }
  footer .content-wrapper > div {
    min-width: unset;
  }
}

/* ------------- COOKIE CONSENT ------------- */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--pastel-salmon);
  color: var(--text-dark);
  box-shadow: 0 -2px 32px 0 rgba(255,145,85,0.17);
  padding: 22px 30px 22px 30px;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  font-size: 1.03rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .33s ease, transform .33s cubic-bezier(.4,0,.2,1);
  transform: translateY(46px);
}
#cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#cookie-banner p { color: var(--text-dark); flex: 1; }
#cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
#cookie-banner .cookie-accept, #cookie-banner .cookie-reject {
  background: var(--brand-primary);
  color: var(--brand-accent);
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  cursor: pointer;
  transition: background .22s, color .22s, box-shadow .22s;
  box-shadow: 0 2px 12px 0 rgba(0,43,85,0.11);
  outline: none;
}
#cookie-banner .cookie-accept:focus, #cookie-banner .cookie-accept:hover {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
#cookie-banner .cookie-reject:focus, #cookie-banner .cookie-reject:hover {
  background: #e5b9a6;
  color: var(--brand-primary);
}
#cookie-banner .cookie-settings {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  cursor: pointer;
  outline: none;
  box-shadow: 0 1px 4px 0 rgba(253,184,19,0.09);
  transition: background .17s, color .17s;
}
#cookie-banner .cookie-settings:focus, #cookie-banner .cookie-settings:hover {
  background: var(--pastel-yellow);
}

@media (max-width: 550px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 6px 18px 6px;
    font-size: .98rem;
  }
  #cookie-banner .cookie-buttons {
    flex-direction: row;
    gap: 8px;
  }
}

/* Cookie Modal */
#cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; bottom: 0; top: 0;
  background: rgba(78, 94, 110, 0.17);
  z-index: 4600;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity .23s cubic-bezier(.4,0,.2,1);
}
#cookie-modal-overlay.active {
  display: flex;
}
#cookie-modal {
  background: #fff;
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 36px 0 rgba(30,42,60,.16);
  padding: 34px 32px 28px 32px;
  max-width: 370px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: modalIn .3s cubic-bezier(.4,0,.2,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(80px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
#cookie-modal h2 {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--brand-primary);
}
#cookie-modal .cookie-category {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-300);
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
}
#cookie-modal .cookie-category:last-child { border-bottom: none; }
#cookie-modal .cookie-switch {
  appearance: none;
  width: 38px;
  height: 22px;
  background: var(--gray-200);
  border-radius: 24px;
  position: relative;
  outline: none;
  transition: background .16s;
  cursor: pointer;
}
#cookie-modal .cookie-switch:checked {
  background: var(--brand-secondary);
}
#cookie-modal .cookie-switch::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: var(--brand-accent);
  border-radius: 50%;
  transition: transform 0.18s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 1.5px 4px 0 rgba(140,130,240,0.07);
}
#cookie-modal .cookie-switch:checked::after {
  transform: translateX(16px);
}
#cookie-modal .cookie-switch[disabled] {
  opacity: .39;
  pointer-events: none;
}
#cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 10px;
}
#cookie-modal .modal-btn {
  padding: 9px 17px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  box-shadow: 0 1px 8px 0 rgba(253,184,19,0.08);
  transition: background .17s, color .17s;
}
#cookie-modal .modal-btn:focus, #cookie-modal .modal-btn:hover {
  background: var(--brand-primary);
  color: var(--brand-accent);
}
#cookie-modal .modal-btn.ghost {
  background: transparent;
  color: var(--brand-primary);
  border: 1.1px solid var(--brand-secondary);
}
#cookie-modal .modal-btn.ghost:focus, #cookie-modal .modal-btn.ghost:hover {
  background: var(--pastel-yellow);
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

@media (max-width: 480px) {
  #cookie-modal {
    padding: 18px 8px;
    max-width: 98vw;
  }
  #cookie-modal .cookie-modal-actions {
    gap: 8px;
    flex-direction: column;
    align-items: stretch;
    margin-top: 8px;
  }
}

/* ----------- MISC & UTILITIES ----------- */
.team-photo-alt {
  color: var(--text-light);
  font-style: italic;
  font-size: .97rem;
  margin-top: 4px;
}

a {
  transition: color var(--transition), background var(--transition), border var(--transition);
}
a:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}
a[href^="mailto:"] {
  color: var(--brand-primary);
  text-decoration: underline;
  font-weight: 500;
}
a[href^="mailto:"]:hover, a[href^="mailto:"]:focus {
  color: var(--brand-secondary);
}

::-webkit-input-placeholder { color: #99abc5; opacity: 1; }
::-moz-placeholder { color: #99abc5; opacity: 1; }
:-ms-input-placeholder { color: #99abc5; opacity: 1; }
::placeholder { color: #99abc5; opacity: 1; }

/* radio/checkbox style overrides for a pastel look */
input[type=radio], input[type=checkbox] {
  accent-color: var(--brand-secondary);
  width: 17px; height: 17px;
  margin-right: 7px;
  vertical-align: middle;
  background: var(--pastel-blue);
  border-radius: 50%;
  box-shadow: 0 2px 4px 0 rgba(0,43,85,.04);
}

/* -------------------- Accessibility Focus Rings -------------------- */
:focus-visible {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 1.5px;
}

/* -------------------- MICRO-ANIMATIONS -------------------- */
.section, .card, .testimonial-card, .feature-item, .footer-nav a, .cta-button, .mobile-nav a, button, .cookie-buttons button, #cookie-banner, #cookie-modal, #cookie-modal .modal-btn {
  transition: box-shadow var(--transition), background var(--transition), color var(--transition), transform var(--transition), opacity .18s;
}

/* -------------------- PASTEL SECTION VARIANTS -------------------- */
.section:nth-of-type(2n) {
  background: var(--pastel-mint);
}
.section:nth-of-type(3n) {
  background: var(--pastel-blue);
}
.section:nth-of-type(4n) {
  background: var(--pastel-yellow);
}

/* -------------------- RESPONSIVE FLEX LAYOUTS -------------------- */
@media (min-width: 769px) {
  .content-wrapper {
    flex-direction: row;
    gap: 36px;
    align-items: flex-start;
    justify-content: space-between;
  }
  .testimonial-card {
    min-width: 260px;
    max-width: 400px;
  }
}

/* ------------- END ------------- */
