/* ===============================================================
   CSS RESET & BASE STYLES
================================================================ */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  outline: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}

:root {
  --primary: #254457;
  --secondary: #8FB6A8;
  --accent: #F4E8DB;
  --white: #FFFFFF;
  --black: #252525;
  --grey: #EFEFEF;
  --shadow-elegant: 0 2px 20px 0 rgba(27,40,56,0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-serif: 'Montserrat', Times, 'Times New Roman', Georgia, serif;
  --font-sans: 'Roboto', Arial, 'Liberation Sans', sans-serif;
  --font-size-xs: 0.875rem;
  --font-size-sm: 1rem;
  --font-size-base: 1.125rem;
  --font-size-md: 1.375rem;
  --font-size-lg: 1.75rem;
  --font-size-xl: 2.25rem;
  --font-size-xxl: 3rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  color: var(--primary);
  background: var(--white);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: var(--font-size-base);
}

/* ===============================================================
   TYPOGRAPHY (Elegant Classic)
================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 {
  font-size: var(--font-size-xxl);
  margin-bottom: 24px;
}
h2 {
  font-size: var(--font-size-xl);
  margin-bottom: 24px;
  font-weight: 700;
}
h3 {
  font-size: var(--font-size-lg);
  margin-bottom: 18px;
  font-weight: 600;
}
h4 {
  font-size: var(--font-size-md);
  margin-bottom: 16px;
  font-weight: 500;
}
p, li, td, th {
  font-family: var(--font-sans);
  color: var(--primary);
  font-size: var(--font-size-base);
  margin-bottom: 12px;
}
p {
  max-width: 700px;
  margin-bottom: 14px;
}
strong, b {
  font-weight: 600;
  color: var(--secondary);
}
small {
  font-size: var(--font-size-xs);
}
a {
  color: var(--secondary);
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--primary);
  text-decoration: underline;
}

/* ===============================================================
   CONTAINER & LAYOUT
================================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* Hero Section */
.hero {
  background: var(--accent);
  border-radius: var(--radius-lg);
  margin-bottom: 60px;
  padding: 60px 0;
  box-shadow: var(--shadow-elegant);
}
.hero .container {
  align-items: center;
}
.hero .content-wrapper {
  text-align: center;
  align-items: center;
  gap: 24px;
}

/* ===============================================================
   NAVIGATION & HEADER
================================================================ */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(37,68,87,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
}
header img[alt="GlanzPfote Hamburg"], header img[alt="GlanzPfote Hamburg Logo"] {
  height: 48px;
  width: auto;
}
nav.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: var(--font-serif);
  color: var(--primary);
  font-size: var(--font-size-sm);
  padding: 4px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:not(.primary-btn):hover::after {
  content: '';
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--secondary);
  border-radius:2px;
}
.main-nav a:not(.primary-btn):hover, .main-nav a:not(.primary-btn):focus {
  color: var(--secondary);
}

.primary-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white)!important;
  font-family: var(--font-serif);
  font-size: var(--font-size-base);
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: var(--radius-md);
  padding: 12px 30px;
  box-shadow: 0 2px 8px rgba(37,68,87,0.10);
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.22s;
  margin-left: 16px;
}
.primary-btn:hover, .primary-btn:focus {
  background: var(--secondary);
  color: var(--primary)!important;
  box-shadow: 0 4px 16px rgba(143,182,168,0.15);
}

/* Mobile MENU */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--primary);
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height:44px;
  align-items: center;
  justify-content: center;
  border: none;
  position: relative;
  z-index: 101;
  box-shadow: 0 1px 4px rgba(37,68,87,0.12);
  transition: background 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--white);
}
.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--accent);
  box-shadow: 0 4px 24px rgba(37,68,87,0.14);
  z-index: 200;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.85,.1,.28,1.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px 0 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: var(--primary);
  font-size: 2.1rem;
  border: none;
  margin-bottom: 12px;
  padding: 4px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  margin-top: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
  color: var(--primary);
  padding: 12px 0 12px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}
@media (max-width: 1023px) {
  header .container {
    flex-direction: row;
    gap: 10px;
  }
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===============================================================
   FLEXBOX UTILITY GRIDS AND CONTENT SPACING (MANDATORY)
================================================================ */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom:24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elegant);
  padding: 28px 22px 24px 22px;
  gap: 15px;
  min-width: 230px;
  max-width: 320px;
  flex:1 1 240px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.18s;
}
.feature-item:hover {
  box-shadow: 0 8px 32px rgba(37,68,87,0.14);
  transform: translateY(-2px) scale(1.01);
}
.feature-item img {
  height: 42px;
  width: 42px;
}
.feature-item h3 {
  font-size: var(--font-size-md);
  color: var(--primary);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-elegant);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.22s;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(37,68,87,0.12);
}
.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: 24px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: 0 2px 20px 0 rgba(27,40,56,0.07);
  max-width: 800px;
  transition: box-shadow 0.17s, background 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px rgba(10, 44, 71, 0.13);
}
.testimonial-card p {
  color: var(--primary);
  font-size: var(--font-size-md);
  line-height: 1.5;
}
.testimonial-card .testimonial-meta {
  color: var(--secondary);
  font-size: var(--font-size-xs);
  margin-top: 8px;
  font-family: var(--font-serif);
  letter-spacing: 0.01em;
}

/* ===============================================================
   TABLE STYLES (PRICING TABLE)
================================================================ */
table {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 14px 0 rgba(27,40,56,0.04);
  overflow: hidden;
  border: 1px solid #e0e3e6;
  margin-bottom: 32px;
}
thead tr {
  background: var(--secondary);
}
th, td {
  text-align: left;
  padding: 18px 16px;
  font-size: var(--font-size-sm);
  color: var(--primary);
}
th {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--white);
}
tbody tr {
  border-bottom: 1px solid #ededed;
}
tbody tr:last-child {
  border-bottom: none;
}
tbody tr:nth-child(even) {
  background: var(--accent);
}


/* ===============================================================
   TEXT SECTIONS, LISTS, & UL LI MARKS
================================================================ */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.text-section ul {
  margin-left: 28px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}
.text-section ul li,
ul li {
  position: relative;
  padding-left: 26px;
  font-size: var(--font-size-base);
  color: var(--primary);
}
.text-section ul li:before,
ul li:before {
  content: "\2714";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-size: 1em;
  font-family: inherit;
}
ul li:before {
  content: '';
}
ul li {
  padding-left: 0;
  margin-left: 0;
  padding-bottom: 4px;
  color: var(--primary);
}

.text-section ul li:has(img) {
  padding-left: 0;
}
.text-section ul li img {
  vertical-align: middle;
  margin-right: 10px;
}
.text-section ul li strong {
  color: var(--primary);
}

/* For lists that use '•' or '-' or other marks */
.text-section ul li:before {
  content: '';
}
.text-section ul li:has(>img) {
  padding-left: 0;
}

/* ===============================================================
   FOOTER STYLES
================================================================ */
footer {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  margin-top: 60px;
  padding: 32px 0 0 0;
  box-shadow: 0 -2px 14px rgba(37,68,87,0.06);
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px 32px;
  padding: 32px 20px 12px 20px;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.footer-brand img {
  height: 38px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: var(--accent);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--font-size-sm);
  transition: color 0.16s;
}
.footer-nav a:hover {
  color: var(--secondary);
}
.footer-contact p, .footer-contact a {
  color: var(--white);
  font-size: var(--font-size-xs);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-social {
  display: flex;
  gap: 16px;
  min-width: 64px;
}
.footer-copyright {
  color: #e7ecec;
  font-size: var(--font-size-xs);
  margin-top: 24px;
  width: 100%;
  text-align: center;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
    padding: 28px 12px 8px 12px;
  }
  .footer-brand {
    font-size: 1.2rem;
  }
}

/* ===============================================================
   COOKIE CONSENT BANNER & MODAL
================================================================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 -1px 16px rgba(37,68,87,.08);
  padding: 20px 16px 20px 20px;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: transform 0.32s;
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner-message {
  font-size: var(--font-size-sm);
  margin-right: 14px;
  max-width: 430px;
}
.cookie-btns {
  display: flex;
  gap: 13px;
}
.cookie-btn {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: var(--font-size-sm);
  font-family: var(--font-serif);
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(37,68,87,0.07);
  transition: background 0.16s, color 0.16s;
}
.cookie-btn.accept {
  background: var(--primary);
  color: var(--white);
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.reject {
  background: #eee;
  color: var(--primary);
}
.cookie-btn.reject:hover {
  background: var(--secondary);
  color: var(--white);
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn.settings:hover {
  background: var(--secondary);
  color: var(--white);
}
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 8px;
  }
  .cookie-btns {
    width: 100%;
    justify-content: flex-end;
    gap: 10px;
  }
}

.cookie-modal-backdrop {
  position: fixed;
  left:0; top:0;
  width: 100vw; height:100vh;
  background: rgba(30,38,50,.36);
  z-index: 11000;
  opacity: 1;
  transition: opacity 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius-lg);
  padding: 36px 24px 24px 24px;
  max-width: 420px;
  width: 95vw;
  box-shadow: 0 8px 44px rgba(37,68,87,0.18);
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.cookie-modal .modal-close {
  position: absolute;
  top:12px; right:12px;
  width:38px;
  height:38px;
  border-radius:50%;
  border: none;
  background: var(--accent);
  color: var(--primary);
  font-size: 1.4rem;
  transition: background 0.14s;
}
.cookie-modal .modal-close:hover {
  background: var(--secondary);
  color: var(--white);
}
.cookie-modal h3 {
  margin-bottom:8px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 7px 0;
}
.cookie-category label {
  font-size: var(--font-size-base);
  font-family: var(--font-serif);
  color: var(--primary);
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  background: #dbe1dd;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background 0.16s;
  vertical-align: middle;
}
.cookie-toggle input {
  opacity: 0;
  pointer-events: none;
}
.cookie-toggle span {
  position:absolute; left:3px; top:3px;
  width:16px;height:16px;
  background: #fff;
  border-radius:50%;
  transition: transform .18s, background .18s;
  box-shadow:0 0 2px rgba(37,68,87,.08);
}
.cookie-toggle.enabled {
  background: var(--secondary);
}
.cookie-toggle.enabled span {
  transform: translateX(16px);
  background: var(--primary);
}
.cookie-category.essential label {
  color: #757575;
}
.cookie-category.essential .cookie-toggle {
  opacity: 0.7;
  cursor: not-allowed;
}
.cookie-modal .cookie-explain {
  font-size: var(--font-size-xs);
  color: #6e7a88;
  margin-top: -10px;
  margin-bottom: 10px;
}

/* ===============================================================
   RESPONSIVE DESIGN & MEDIA QUERIES
================================================================ */
@media (max-width: 870px) {
  .features-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {

  h1 {font-size: 2rem;}
  h2 {font-size: 1.5rem;}
  h3 {font-size: 1.18rem;}
  .section, .hero {
    padding: 26px 6px 38px 6px;
    margin-bottom: 36px;
  }
  .features-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 8px;
  }
}

@media (max-width:480px) {
  .hero {
    padding:16px 0 24px 0;
  }
  .testimonial-card {
    padding: 8px 3px;
  }
}

/* ===============================================================
   FORM & BUTTONS (Contact, Cookie Modals)
================================================================ */
input, textarea, select {
  font-family: var(--font-sans);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  border: 1px solid #d6dee3;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(143,182,168, 0.01);
  width: 100%;
  transition: border 0.18s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--secondary);
  outline: none;
  box-shadow: 0 0 0 2px var(--secondary);
}
button, .btn {
  cursor: pointer;
  background: var(--primary);
  color: var(--white);
  padding:10px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: var(--font-size-base);
  transition: background 0.17s, box-shadow .14s;
}
bottom:hover, .btn:hover, button:focus {
  background: var(--secondary);
  color: var(--white);
}

/* =======================
   C O D E   E N D
======================= */
