/* --- 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, menu, 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, 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.55;
  background: #f9fafb;
  color: #173952;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #173952; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #6FA284; text-decoration: underline; }
ul, ol { margin-left: 24px; margin-bottom: 16px; }
strong, b { font-weight: 700; }
hr { border: 0; height: 1px; background: #e3e7ec; margin: 32px 0; }

/* --- Brand Variables --- */
:root {
  --color-primary: #173952;
  --color-secondary: #6FA284;
  --color-accent: #F3E9D9;
  --color-white: #fff;
  --color-gray-100: #f5f7fa;
  --color-gray-200: #e3e7ec;
  --color-gray-300: #bec6cf;
  --color-gray-500: #788498;
  --color-black: #12202a;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-md: 0 2px 8px 0 rgba(23,57,82,0.08);
  --shadow-lg: 0 8px 24px rgba(23,57,82,0.10);
  --transition: all 0.22s cubic-bezier(.4,0,.2,1);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Source Sans Pro', Arial, Helvetica, sans-serif;
}

body { background: var(--color-gray-100); color: var(--color-primary); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.18;
  margin-bottom: 16px;
}
h1 { font-size: 2.25rem; margin-bottom: 24px; }
h2 { font-size: 1.75rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 12px; }
p, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.6;
}
.text-section h3 {
  margin-top: 20px;
  font-size: 1.125rem;
  color: var(--color-secondary);
}
.text-section {
  margin-bottom: 12px;
}
small {
  font-size: 0.92rem;
  color: var(--color-gray-500);
}

/* --- Layout & Containers --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* --- Hero Section --- */
.hero-section {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 60px 0 40px 0;
  margin-bottom: 40px;
}
.hero-section .container,
.hero-section .content-wrapper {
  color: var(--color-white);
}
.hero-section h1 {
  color: var(--color-white);
}
.hero-section p {
  color: var(--color-accent);
  font-size: 1.15rem;
  margin-bottom: 28px;
}
.hero-section .cta-btn {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* --- Features Section --- */
.features-section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: var(--color-accent);
}
.feature-grid, .feature-list, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-md);
  min-width: 220px;
  max-width: 300px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s;
}
.feature-item:hover {
  box-shadow: var(--shadow-lg);
  background: #f4f8fa;
}
.feature-item img {
  width: 48px;
  height: 48px;
}
.feature-item h3 {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.feature-item p {
  margin-bottom: 0;
}

/* --- Testimonials Section --- */
.testimonials-section {
  background: var(--color-gray-100);
  padding: 48px 0;
  margin-bottom: 60px;
}
.testimonials-section .content-wrapper {
  gap: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 28px;
  margin-bottom: 20px;
  background: var(--color-white);
  color: var(--color-primary);
  border-left: 5px solid var(--color-secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-family: var(--font-body);
  transition: box-shadow 0.2s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px 0 rgba(23,57,82,.13);
  transform: translateY(-3px);
}

.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.07rem;
  margin-bottom: 0;
  font-style: italic;
}
.testimonial-card small {
  color: var(--color-gray-500);
  font-size: 0.97rem;
}

/* --- Service/Offer Section --- */
.services-section {
  margin-bottom: 60px;
  padding: 40px 0;
}
.services-section .cta-btn {
  margin-top: 16px;
}

/* Pricing Table (Preise page) */
.pricing-section table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  margin-bottom: 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.pricing-section th, .pricing-section td {
  padding: 16px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-gray-200);
}
.pricing-section th {
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 1.06rem;
  font-weight: 700;
}
.pricing-section tbody tr:last-child td {
  border-bottom: none;
}
.pricing-section td strong {
  color: var(--color-secondary);
}

/* --- Section & Card Patterns --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 24px;
  transition: box-shadow 0.19s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
}
.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;
}

/* FAQ Section */
.faq-section h3 {
  margin-top: 18px;
  color: var(--color-secondary);
  font-size: 1.13rem;
}
.faq-section p {
  margin-bottom: 14px;
  font-size: 1rem;
}

/* --- Call to Action (CTA) Button --- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.09rem;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  box-shadow: var(--shadow-md);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 16px;
  outline: none;
  margin-bottom: 12px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* --- Header & Navigation --- */
header {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  padding: 0 20px;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  height: 58px;
}
.logo img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 36px;
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 500;
}
.main-nav a {
  color: var(--color-primary);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.17s, border-bottom 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
  text-decoration: none;
}

header .cta-btn {
  margin: 0 0 0 36px;
  font-size: 1em;
  padding: 9px 22px;
}

/* --- Footer --- */
footer {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 36px 0 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 48px;
  border-radius: 24px 24px 0 0;
}
.footer-nav {
  font-family: var(--font-display);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--color-accent);
  font-size: 1rem;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--color-accent);
  font-weight: 500;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
}
.footer-info {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--color-accent);
}
.footer-info a { color: var(--color-secondary); }
.footer-info a:hover { color: #7db799; }

/* --- Responsive Mobile Menu --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 23px;
  z-index: 1201;
  background: var(--color-primary);
  color: var(--color-accent);
  border: none;
  padding: 10px 18px;
  font-size: 2.1rem;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.16s;
  box-shadow: var(--shadow-md);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--color-primary);
  color: var(--color-accent);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.55,0,.1,1);
  overflow-y: auto;
  box-shadow: 0 0 32px 0 rgba(23,57,82,.10);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 34px;
  background: none;
  color: var(--color-accent);
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 2050;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 86px 34px 24px 34px;
  width: 100%;
  font-size: 1.23rem;
  font-family: var(--font-display);
}
.mobile-nav a {
  color: var(--color-accent);
  padding: 12px 0;
  border-radius: 14px;
  transition: background 0.16s, color 0.15s;
  width: 100%;
  display: flex;
}
.mobile-nav a:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* --- Cookie Consent Banner & Modal --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 24px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 3000;
  box-shadow: 0 -2px 10px rgba(23,57,82,0.11);
  font-family: var(--font-body);
  animation: cookie-banner-fade-in 0.7s;
}
@keyframes cookie-banner-fade-in {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  color: var(--color-accent);
  margin-bottom: 0;
  font-size: 1.08rem;
}
.cookie-banner .cookie-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 6px;
}
.cookie-btn, .cookie-settings-btn {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
  border: none;
  padding: 10px 24px;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.17s, color 0.15s;
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

.cookie-settings-btn {
  background: var(--color-primary);
  color: var(--color-accent);
  border: 2px solid var(--color-secondary);
  transition: background 0.17s, color 0.15s, border 0.15s;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(23,57,82,0.45);
  z-index: 3050;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fade-in 0.32s;
}
@keyframes cookie-modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: var(--color-white);
  color: var(--color-primary);
  padding: 38px 28px 28px 28px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(23,57,82,.18);
  min-width: 320px;
  max-width: 95vw;
  position: relative;
  animation: modal-slide-down 0.29s cubic-bezier(.42,.12,.17,1.31);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@keyframes modal-slide-down {
  from { transform: translateY(-40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
}
.cookie-modal h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-modal label {
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-switch {
  appearance: none;
  width: 38px; height: 22px;
  background: var(--color-gray-200);
  border-radius: 12px;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: background 0.17s;
}
.cookie-switch:checked {
  background: var(--color-secondary);
}
.cookie-switch:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: var(--color-white);
  border-radius: 50%;
  transition: transform 0.16s;
}
.cookie-switch:checked:before {
  transform: translateX(16px);
}

/* --- General Spacing & Card Patterns --- */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
}
.content-grid {
  gap: 20px;
}
.text-image-section {
  gap: 30px;
}
.testimonial-card {
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
}
.feature-item {
  gap: 15px;
}

/* --- Forms & Inputs --- */
input[type='text'],
input[type='email'],
input[type='number'],
textarea {
  width: 100%;
  max-width: 480px;
  padding: 11px 12px;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--color-white);
  margin-bottom: 18px;
  font-family: var(--font-body);
  transition: border 0.19s;
}
input:focus, textarea:focus {
  border-color: var(--color-secondary);
  outline: none;
}

/* --- Media Queries: Responsive Design --- */
@media (max-width: 1080px) {
  .container { max-width: 100%; }
  .feature-grid, .content-grid, .features {
    gap: 16px;
    justify-content: flex-start;
  }
}
@media (max-width: 920px) {
  .container { padding: 0 11px; }
  .main-nav { gap: 12px; margin-left: 16px; }
  header .cta-btn { margin-left: 14px; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.27rem; }
  .hero-section { padding: 34px 0 24px 0; }
  section, .section { padding: 28px 4vw; }
  .feature-item { min-width: unset; max-width: 100%; }
  .main-nav { display: none; }
  header .cta-btn { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (max-width: 600px) {
  .footer-nav { flex-direction: column; gap: 2px; text-align: center; }
  .footer-info { font-size: 0.9rem; }
  .cookie-modal { min-width: 98vw; padding: 24px 6vw 12px 6vw; }
}
@media (max-width: 520px) {
  .container { padding: 0 4px; }
  .feature-item, .card { padding: 13px 7px; }
  .hero-section { padding: 18px 0 12px 0; }
}

/* --- Responsive Flex Alignment --- */
@media (max-width: 768px) {
  .feature-grid, .features, .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .footer-nav, .footer-info {
    padding: 0 3vw;
  }
}

/* --- Utilities --- */
.hide { display: none !important; }

/* --- Custom Scrollbars for Professional Look --- */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-gray-100);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: 6px;
}

/* --- Animation Utility --- */
.fade-in {
  animation: fade-in 0.42s ease-in;
}
@keyframes fade-in { from { opacity:0; } to { opacity:1; } }

/* --- End of Style --- */
