/* =============================================================
   CSS RESET & NORMALIZE (Modern Normalize)
   ============================================================= */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  margin: 0;
  padding: 0;
  background: #F6F8F9;
  color: #232F34;
  font-family: 'Source Sans Pro', Georgia, 'Times New Roman', Times, serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a {
  color: #232F34;
  text-decoration: none;
  background-color: transparent;
  transition: color .2s;
}
a:hover, a:focus {
  color: #E87D1E;
  outline: 0;
}
ul, ol {
  list-style-position: inside;
  list-style-type: none;
  margin: 0;
  padding: 0;
}
button, input, select, textarea {
  font: inherit;
  outline: none;
  background: none;
  border: none;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}
hr {
  border: none;
  height: 1px;
  background: #d5dce2;
  margin: 32px 0;
}

/* =============================================================
   BRAND FONTS – "Elegant Classic" Update
   ============================================================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:600,700|Source+Serif+Pro:400,600,700|Source+Sans+Pro:400,600,700&display=swap');

:root {
  --color-primary: #232F34;
  --color-secondary: #E87D1E;
  --color-accent: #F6F8F9;
  --color-muted: #7B848E;
  --color-white: #fff;
  --color-border: #e5e7ea;
  --color-shadow: rgba(35,47,52,0.07);
  --border-radius: 10px;
  --font-display: 'Montserrat', 'Source Serif Pro', Georgia, serif;
  --font-body: 'Source Serif Pro', 'Source Sans Pro', Georgia, serif;
  --transition: all 0.25s cubic-bezier(.4,0,.2,1);
}

/* =============================================================
   LAYOUT CONTAINER & SECTIONS
   ============================================================= */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 32px var(--color-shadow);
  box-sizing: border-box;
}
@media (max-width: 768px) {
  section {
    margin-bottom: 36px;
    padding: 24px 8px;
  }
  .container {
    padding: 0 8px;
  }
}

/*
=============================================================
 TYPOGRAPHY (Elegant Classic Serif/Display)
=============================================================
*/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  line-height: 1.2;
}
h1 {
  font-size: 2.8rem;
  margin-top: 0;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.35rem;
  font-weight: 600;
}
h4 {
  font-size: 1.2rem;
}
@media (max-width: 575px) {
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  h3 {
    font-size: 1rem;
  }
  h4 {
    font-size: 1rem;
  }
}
p, li, table, input, th, td, blockquote, span {
  font-family: var(--font-body);
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
}
blockquote {
  font-style: italic;
  background: var(--color-accent);
  padding: 12px 20px;
  border-left: 3px solid var(--color-secondary);
  border-radius: 0 10px 10px 0;
  font-family: var(--font-body);
  color: var(--color-primary);
}
strong {
  font-weight: 700;
}

/*
=============================================================
 HEADER & NAVIGATION
=============================================================
*/
header {
  background: var(--color-white);
  box-shadow: 0 2px 16px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 1001;
  width: 100%;
  padding: 0;
}
header > a img {
  height: 52px;
  padding: 16px 0;
  transition: filter .2s;
}
header > nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: flex-end;
}
header > nav a {
  font-family: var(--font-display);
  font-size: 1.08rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: var(--transition);
  color: var(--color-primary);
  font-weight: 600;
  position: relative;
}
header > nav a:hover,
header > nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
header > nav a.cta.primary {
  background: var(--color-secondary);
  color: var(--color-white);
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(35,47,52,0.05);
  padding: 9px 18px;
  transition: var(--transition);
}
header > nav a.cta.primary:hover,
header > nav a.cta.primary:focus {
  background: #cf660e;
  color: #fff;
}

header > nav a.cta.secondary {
  background: #f8eeee;
  color: var(--color-secondary);
  font-weight: 700;
  border-radius: 6px;
  padding: 8px 18px;
  border: 1px solid var(--color-secondary);
  transition: var(--transition);
}
header > nav a.cta.secondary:hover,
header > nav a.cta.secondary:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
}

/*
=============================================================
 MOBILE NAVIGATION (slide-in)
=============================================================
*/
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  padding: 10px;
  color: var(--color-primary);
  background: none;
  border: none;
  border-radius: 50%;
  transition: background .2s, color .2s;
  z-index: 1101;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--color-white);
  box-shadow: 0 8px 32px var(--color-shadow);
  transform: translateX(-100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  color: var(--color-primary);
  border: none;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1250;
  padding: 8px;
  border-radius: 50%;
  transition: background .2s, color .2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--color-secondary);
  background: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: 80px 36px 32px 36px;
}
.mobile-nav a {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--color-primary);
  padding: 12px 0;
  border-bottom: 1px solid #f1f1f1;
  width: 100%;
  margin-bottom: 2px;
  transition: color .2s, background .2s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: var(--color-accent);
}

@media (max-width: 1024px) {
  header > nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/*
=============================================================
 MAIN - GENERIC ELEMENTS & FLEXBOX LAYOUTS
=============================================================
*/
main {
  flex: 1 0 auto;
  width: 100%;
  background: var(--color-accent);
  padding-bottom: 60px;
  min-height: 60vh;
}

/* Section and card structure (MANDATORY CLASSES) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 32px var(--color-shadow);
  box-sizing: border-box;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 18px var(--color-shadow);
  padding: 26px 28px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 250px;
  transition: box-shadow .17s;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(35,47,52,0.18);
}
.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;
  }
}
.testimonial-card {
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: 0 1px 6px rgba(35,47,52,0.07);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  min-width: 0;
  max-width: 700px;
  color: var(--color-primary);
}
.testimonial-card blockquote {
  color: var(--color-primary);
  background: none;
  padding: 0;
  border: none;
  font-size: 1.09rem;
  font-style: italic;
  flex: 1 1 auto;
  margin-right: 20px;
}
.testimonial-card p {
  font-size: 1rem;
  color: var(--color-secondary);
  min-width: 150px;
  font-family: var(--font-display);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width: 768px) {
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* CUSTOM FLEX LAYOUTS for service / categories / guides / tips */
.service-grid, .category-grid, .tips-list, .guide-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  width: 100%;
  margin: 12px 0 24px 0;
}
.service-grid > div, .category-grid > div, .tips-list > div, .guide-list > div {
  background: var(--color-accent);
  border-radius: 12px;
  box-shadow: 0 2px 14px var(--color-shadow);
  padding: 22px 20px;
  min-width: 230px;
  flex: 1 1 210px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  transition: box-shadow .15s, transform .15s;
}
.service-grid > div:hover, .category-grid > div:hover, .tips-list > div:hover, .guide-list > div:hover {
  box-shadow: 0 6px 28px rgba(35,47,52,0.15);
  transform: translateY(-3px) scale(1.01);
}
@media (max-width: 768px) {
  .service-grid, .category-grid, .tips-list, .guide-list {
    flex-direction: column;
    gap: 16px;
  }
}

/* CTA Buttons */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 12px 28px;
  font-size: 1.08rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--color-secondary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px var(--color-shadow);
  transition: background .16s, color .16s, box-shadow .19s;
  margin-top: 8px;
  margin-bottom: 8px;
}
.cta.secondary {
  background: #fff7f0;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
  box-shadow: none;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: 0 2px 7px var(--color-shadow);
}
.cta.primary:hover, .cta.primary:focus {
  background: #cf660e;
  color: #fff;
}

/* Special styling for hero input */
input[type="search"] {
  display: block;
  width: 100%;
  max-width: 370px;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  background: #FBFBFB;
  font-size: 1rem;
  border-radius: 8px;
  margin-top: 10px;
  margin-bottom: 5px;
  transition: border .18s;
  box-shadow: 0 1.5px 6px var(--color-shadow);
}
input[type="search"]:focus {
  border-color: var(--color-secondary);
  outline: none;
}

/* Tables for 'beratung.html' */
table {
  width: 100%;
  background: var(--color-accent);
  margin-bottom: 22px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 10px var(--color-shadow);
  border-collapse: separate;
  border-spacing: 0;
}
td, th {
  padding: 16px 16px;
  border-bottom: 1px solid #eee;
  font-family: var(--font-body);
}
tr:last-child td {
  border-bottom: none;
}

/*
=============================================================
 FOOTER
=============================================================
*/
footer {
  background: var(--color-white);
  box-shadow: 0 -2px 16px var(--color-shadow);
  margin-top: 32px;
  padding: 38px 0 24px 0;
}
footer .container {
  max-width: 1100px;
}
footer .content-wrapper {
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
footer nav a {
  color: var(--color-muted);
  font-size: 1rem;
  margin-bottom: 3px;
  border-radius: 4px;
  padding: 0 2px;
  transition: color .12s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
  min-width: 200px;
}
.text-section h4 {
  color: var(--color-primary);
  font-size: 1.08rem;
  font-family: var(--font-display);
  margin-bottom: 5px;
}
.text-section img {
  height: 28px;
  margin-right: 8px;
  vertical-align: middle;
  filter: grayscale(40%);
  opacity: .8;
  transition: filter .2s, opacity .2s;
}
.text-section a img:hover, .text-section a img:focus {
  filter: none;
  opacity: 1;
}

@media (max-width: 850px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* Helper: spacing for common lists */
ul > li, ol > li {
  margin-bottom: 10px;
  padding-left: 0.5em;
}
ul > li:last-child, ol > li:last-child {
  margin-bottom: 0;
}

/*
=============================================================
 UTILITIES & COMPONENTS - SHADOWS, GAPS
=============================================================
*/
.gap-16 {
  gap: 16px!important;
}
.gap-24 {
  gap: 24px!important;
}
.rounded {
  border-radius: var(--border-radius);
}
.box-shadow {
  box-shadow: 0 4px 32px var(--color-shadow) !important;
}

/*
=============================================================
 MICRO-INTERACTIONS & TRANSITIONS
=============================================================
*/
.card, .service-grid > div, .category-grid > div, .tips-list > div, .guide-list > div,
.cta, input[type="search"], .testimonial-card, header > nav a {
  transition: var(--transition);
}

/* Links in tips etc. */
.tips-list a, .guide-list a {
  color: var(--color-secondary);
  font-weight: 600;
  padding-left: 2px;
  border-bottom: 1px solid #fbb37a;
  transition: color .16s, border-color .2s;
}
.tips-list a:hover, .guide-list a:hover {
  color: #232F34;
  border-color: #232F34;
}

/*
=============================================================
 COOKIE CONSENT BANNER & MODAL
=============================================================
*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1400;
  background: var(--color-white);
  border-top: 2px solid var(--color-border);
  box-shadow: 0 -4px 16px var(--color-shadow);
  padding: 16px 12px 12px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  animation: fadeInBanner .44s cubic-bezier(.5,0,.5,1) 0s 1;
}
@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(72px); }
  to   { opacity: 1; transform: none; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.cookie-banner button,
.cookie-banner .cookie-settings-btn {
  background: var(--color-secondary);
  color: var(--color-white);
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin-right: 3px;
  transition: background .17s, color .17s;
  font-family: var(--font-display);
}
.cookie-banner button.cookie-settings-btn {
  background: var(--color-accent);
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-banner button.cookie-settings-btn:hover,
.cookie-banner .cookie-settings-btn:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}
.cookie-banner button.reject {
  background: #fff7f0;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-banner button.reject:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 8px 8px 8px;
    gap: 10px;
  }
  .cookie-banner .cookie-buttons {
    margin-left: 0;
  }
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1501;
  background: rgba(35,47,52,.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.cookie-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1510;
  transform: translate(-50%,-50%) scale(.95);
  background: var(--color-white);
  min-width: 300px;
  max-width: 420px;
  padding: 32px 26px 22px 26px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(35,47,52,0.19);
  opacity: 0;
  pointer-events: none;
  transition: opacity .23s, transform .23s;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h3 {
  font-size: 1.3rem;
}
.cookie-modal .cookie-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal .cookie-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #eceff1;
  border-radius: 24px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background .16s;
}
.cookie-modal .cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px; height: 16px;
  background: var(--color-muted);
  border-radius: 50%;
  transition: left .19s, background .17s;
}
.cookie-modal .cookie-toggle:checked {
  background: var(--color-secondary);
}
.cookie-modal .cookie-toggle:checked:before {
  left: 19px;
  background: var(--color-primary);
}
.cookie-modal .essential-label {
  font-weight: 600;
  opacity: .62;
  color: var(--color-primary);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.cookie-modal .cookie-actions button {
  background: var(--color-secondary);
  color: var(--color-white);
  border: none;
  border-radius: 7px;
  padding: 9px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  transition: background .17s, color .17s;
  cursor: pointer;
}
.cookie-modal .cookie-actions button:last-child {
  background: var(--color-accent);
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-modal .cookie-actions button:last-child:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

/*
=============================================================
 RESPONSIVE
=============================================================
*/
@media (max-width: 575px) {
  .container {
    padding: 0 4px;
  }
  .content-wrapper {
    gap: 12px;
  }
  section {
    padding: 14px 2px;
    border-radius: 0;
  }
  .card, .service-grid > div, .category-grid > div, .tips-list > div, .guide-list > div {
    padding: 16px 10px;
  }
  .testimonial-card {
    padding: 10px;
  }
}

/*
=============================================================
 MISCELLANEOUS / ACCESSIBILITY
=============================================================
*/
::-webkit-selection { background: #E87D1E22; }
::selection { background: #E87D1E22; }
:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/*
=============================================================
 PRINT
=============================================================
*/
@media print {
  body, section, main { background: #fff; color: #111; }
  header, footer, .cookie-banner { display: none !important; }
}
