/* =======================================================
   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, 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%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*,*:before,*:after { box-sizing: inherit; }
article,aside,details,figcaption,figure, 
footer,header,hgroup,menu,nav,section {
  display: block;
}
body {
  line-height: 1.5;
  background: #f9f7f3;
  color: #2C4866;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }

/* Web Fonts */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

/* =======================================================
   Variables / Vintage Retro Colors
   ======================================================= */
:root {
  --color-primary: #2C4866;
  --color-secondary: #84B082;
  --color-accent: #FFD29D; /* Soft retro apricot */
  --color-bg: #f9f7f3;
  --color-offwhite: #FDF4E3;
  --color-shadow: rgba(44,72,102,0.05);
  --color-border: #e3dacb;
  --color-dark: #312620;
  --color-warning: #b0592c;
  --color-btn: #E17A47;
  --color-btn-hover: #d1562c;
  --color-card-bg: #fffced;
  --color-footer: #453c2b;
  --color-footer-text: #fffaf3;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* =======================================================
   Layout: Containers & Flexbox Utilities
   ======================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.footer-wrapper,
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: 20px;
  box-shadow: 0 6px 32px var(--color-shadow);
}
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card-bg);
  border: 2px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 28px 22px;
  min-width: 270px;
  flex: 1 1 300px;
  transition: box-shadow 0.23s, transform 0.23s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(225,122,71,0.09);
  transform: translateY(-4px) scale(1.01) rotate(-0.5deg);
}
.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; }

.feature-list,
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 -10px 0 -10px;
}
.feature-list li, .service-list li {
  background: var(--color-offwhite);
  border: 2px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 3px 16px var(--color-shadow);
  padding: 24px 18px 18px 18px;
  min-width: 220px;
  flex: 1 1 270px;
  margin: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--color-primary);
  transition: box-shadow 0.24s;
  position: relative;
  overflow: hidden;
}
.feature-list li img, .service-list li img {
  width: 36px;
  height: 36px;
  margin-bottom: 5px;
  filter: sepia(0.22) hue-rotate(-9deg) blur(0.3px);
}
.feature-list li strong,
.service-list li strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08em;
  letter-spacing: 0.07em;
  color: var(--color-dark);
}
.feature-list li span,
.service-list li span {
  color: var(--color-warning);
  font-size: 0.95em;
  font-family: var(--font-body);
  margin-top: 4px;
  font-weight: 600;
}

/* Blog Teaser */
.blog-teaser {
  background: var(--color-card-bg);
  border: 2px solid var(--color-border);
  border-radius: 13px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 26px 20px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.22s, border-color 0.18s;
}
.blog-teaser:hover {
  box-shadow: 0 8px 40px rgba(132, 176, 130, 0.13);
  border-color: var(--color-secondary);
}

/* =======================================================
   Typography: Retro Styled
   ======================================================= */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--color-primary);
}
h1 {
  font-size: 2.2rem;
  margin-top: 8px;
  color: var(--color-btn);
  text-shadow: 1px 3px 0px #fff1d6, 0 1px 0 var(--color-border);
}
h2 {
  font-size: 1.6rem;
  margin-top: 6px;
}
h3 {
  font-size: 1.24rem;
  margin-bottom: 7px;
}
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 4px; }
p, ul, li, span, em {
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 1rem;
  color: var(--color-primary);
}
ul, li {
  margin-left: 0; padding-left: 0;
}
strong { font-weight: 700; }
em { font-style: italic; }
.callout {
  background: var(--color-accent);
  border-left: 6px solid var(--color-btn);
  border-radius: 11px;
  color: var(--color-dark);
  font-family: var(--font-body);
  font-weight: 700;
  padding: 16px 20px 16px 18px;
  margin: 16px 0 0 0;
}

.category-filter {
  display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 22px;
}
.category-filter li {
  background: var(--color-offwhite);
  border: 2px solid var(--color-secondary);
  border-radius: 9px;
  font-family: var(--font-display);
  font-weight: bold;
  color: var(--color-btn);
  padding: 7px 16px 7px 16px;
  font-size: 1em;
  letter-spacing: 0.08em;
  box-shadow: 0 1px 8px var(--color-shadow);
}

/* Pattern: Nostalgic Patterns as Borders */
.section {
  border: 3px solid #e2c49e;
  border-radius: 18px 44px 18px 44px / 22px 18px 36px 40px;
  background: repeating-linear-gradient(135deg, #fffced 0 7px, #f9f7f3 7px 14px);
}

/* =======================================================
   Header & Navigation
   ======================================================= */
header {
  background: var(--color-offwhite);
  border-bottom: 3px solid #e2c49e;
  position: sticky; top: 0; left: 0; right: 0;
  z-index: 51;
  box-shadow: 0 1.5px 8px rgba(44,72,102,0.04);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  min-height: 80px;
  padding-top: 8px;
  padding-bottom: 8px;
}
header img[alt="Hidden Glint Gießen"] {
  width: 52px; height: auto;
  margin-right: 14px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.06em;
  font-weight: 700;
  color: var(--color-primary);
  padding: 5px 12px;
  border-radius: 8px;
  transition: background 0.22s, color 0.22s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-btn);
  color: #fffde5;
  outline: none;
}
.cta-primary {
  background: var(--color-btn);
  color: #fffaf3;
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1.08em;
  padding: 10px 30px;
  border: none;
  border-radius: 14px;
  box-shadow: 0 2px 6px var(--color-shadow);
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.23s, transform 0.21s, box-shadow 0.18s;
  outline: none;
  letter-spacing: 0.09em;
  position: relative;
  z-index: 2;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-btn-hover);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 18px rgba(225,122,71,0.11);
}
.cta-secondary {
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 9px 20px;
  font-size: 1.00em;
  border-radius: 12px;
  transition: background 0.17s, transform 0.21s;
  border: none;
  box-shadow: 0 1px 4px var(--color-shadow);
  cursor: pointer;
  margin-top: 8px;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--color-primary);
  color: #fffaf3;
  transform: translateY(-1.5px) scale(1.045);
}

/* ================== MOBILE NAVIGATION ================ */
.mobile-menu-toggle {
  display: none;
  position: relative;
  z-index: 100;
  background: var(--color-btn);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 2.3rem;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  transition: background 0.12s, box-shadow 0.18s;
  margin-left: auto;
  margin-right: 8px;
  cursor: pointer;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-btn-hover);
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0; bottom: 0; right: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background:rgba(44, 72, 102, 0.94);
  z-index: 1004;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(100vw);
  transition: transform 0.36s cubic-bezier(0.74,0.02,0.32,0.89);
  opacity:1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity:1;
}
.mobile-menu-close {
  font-size: 2.1rem;
  background: none;
  color: #fffaf3;
  border: none;
  margin: 26px 0 18px 26px;
  align-self: flex-start;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 16px 36px;
  margin-top: 16px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: bold;
  color: #fffaf3;
  padding: 6px 0;
  border-radius: 8px;
  transition: background 0.16s;
  letter-spacing: 0.12em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-btn);
  color: var(--color-offwhite);
}

/* =================== FOOTER ====================== */
footer {
  background: var(--color-footer);
  color: var(--color-footer-text);
  border-top: 6px solid var(--color-border);
  padding: 34px 0 32px 0;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 170px;
}
.footer-nav a {
  color: var(--color-footer-text);
  font-family: var(--font-display);
  font-size: 1.03em;
  opacity: 0.89;
  transition: color 0.22s, opacity 0.13s;
  border-radius: 5px;
  padding: 4px 9px;
}
.footer-nav a:hover {
  color: var(--color-accent);
  opacity: 1;
}
.mini-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.98em;
  color: var(--color-footer-text);
}
.mini-contact img {
  width: 33px;
  height: auto;
  margin-bottom: 5px;
}
.mini-contact span, .mini-contact a {
  color: var(--color-footer-text);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.social-media {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.social-media a img {
  width: 34px; height: 34px;
  border-radius: 6px;
  background: #fffbe7;
  padding: 5px;
  transition: background 0.19s, box-shadow 0.16s;
}
.social-media a:hover img {
  background: var(--color-btn);
  box-shadow: 0 2px 8px rgba(225,122,71,0.14);
}

/* ============== THANK YOU LINKS ================== */
.thankyou-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* =======================================================
   Testimonial Section (Vintage Cards)
   ======================================================= */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff4d3;
  border: 2.5px dashed var(--color-secondary);
  border-radius: 22px;
  box-shadow: 0 3px 18px rgba(44,72,102,0.12);
  padding: 20px 30px 20px 26px;
  margin-bottom: 20px;
  min-width: 250px;
  max-width: 730px;
  font-family: var(--font-body);
  color: #241c12;
  position: relative;
  font-size: 1.11em;
  transition: box-shadow 0.21s, border-color 0.21s;
}
.testimonial-card p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.04em;
  color: #2c2c1f;
  margin-bottom: 0px;
}
.testimonial-card span {
  font-family: var(--font-body);
  color: var(--color-warning);
  font-size: 0.99em;
  font-style: italic;
  font-weight: 600;
  margin-left: 20px;
  white-space: nowrap;
}
.testimonial-card::before {
  content: '\201C';
  font-family: serif;
  font-size: 2.1em;
  color: var(--color-btn);
  opacity: 0.23;
  position: absolute;
  top: 16px; left: 15px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 44px rgba(225,122,71,0.09);
  border-color: var(--color-btn);
}

/* Ensuring proper text contrast in testimonials */
.testimonial-card,
.testimonial-card p, .testimonial-card span {
  background: #fff4d3;
  color: #2c2c1f;
}

/* ================ Spacing Patterns =============== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* =============== General Spacing Consistency ================ */
section:not(:last-child) { margin-bottom: 60px; }
.content-wrapper > * { margin-bottom: 20px; }
.content-wrapper > *:last-child { margin-bottom: 0; }

/* =============== Form Elements (if any) ==================== */
input, textarea, select, button {
  font-family: var(--font-body);
  font-size: 1em;
}
input, textarea, select {
  border: 2px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
  background: #fffedc;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.19s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-btn);
  box-shadow: 0 0 6px #ffd29d66;
}
button, .button {
  cursor: pointer;
  font-family: var(--font-display);
}

/* ================= Cookie Consent Banner =============== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  width: 100vw;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--color-accent);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 22px 24px;
  box-shadow: 0 -4px 24px rgba(44,72,102,0.10);
  border-top: 3.5px solid var(--color-btn);
  visibility: visible;
  opacity: 1;
  transition: opacity 0.32s, transform 0.38s;
}
.cookie-consent-banner.hide {
  opacity: 0; transform: translateY(100%);
  pointer-events: none;
}
.cookie-consent-banner .cookie-message {
  flex: 2 1 300px;
}
.cookie-consent-banner .cookie-actions {
  flex: 1 1 180px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-btn, .cookie-btn-settings {
  border: none;
  border-radius: 9px;
  background: var(--color-btn);
  color: #fffaf3;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 1.02em;
  font-weight: 700;
  margin: 0 3px;
  transition: background 0.15s, color 0.14s, box-shadow 0.10s;
  box-shadow: 0 2px 8px var(--color-shadow);
  cursor: pointer;
}
.cookie-btn:hover, .cookie-btn:focus,
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: var(--color-btn-hover);
  color: #fffbe5;
  outline: none;
}
.cookie-btn.reject {
  background: var(--color-secondary);
  color: #fffaf3;
}
.cookie-btn.reject:hover { background: var(--color-primary); }
.cookie-btn-settings {
  background: var(--color-primary);
  color: #fffaf3;
}
.cookie-btn-settings:hover { background: var(--color-btn); color: #fffbe5; }

/* ------- Cookie Modal Overlay (Preferences) ------- */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(44,72,102,0.60);
  z-index: 10010;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s;
}
.cookie-modal.hide { opacity: 0; visibility: hidden; }
.cookie-modal-content {
  background: #fffced;
  border-radius: 18px;
  padding: 40px 28px 36px 28px;
  min-width: 320px;
  max-width: 370px;
  box-shadow: 0 6px 48px rgba(44,72,102,0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  border: 3px solid var(--color-btn);
}
.cookie-modal-content h2 {
  font-size: 1.25rem;
  color: var(--color-btn);
  margin-bottom: 5px;
}
.cookie-modal-content p { color: var(--color-primary); font-size: 1.05em; }
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category-item {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-body);
  font-size: 1em;
  color: var(--color-primary);
}
.cookie-category-item label {
  flex: 1;
  font-weight: 600;
}
.cookie-category-item input[type="checkbox"] {
  accent-color: var(--color-btn);
  width: 18px; height: 18px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-close {
  position: absolute; top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 1.5em;
  color: var(--color-btn-hover);
  cursor: pointer;
}
.cookie-close:hover {
  color: var(--color-primary);
}

/* ------ Responsiveness (Mobile First) --------- */
@media (max-width: 1200px) {
  .container { max-width: 1000px; }
}
@media (max-width: 992px) {
  .container { max-width: 830px; }
  .main-nav { gap: 8px; }
}
@media (max-width: 850px) {
  .footer-wrapper { gap: 24px; flex-direction: column; align-items: flex-start; }
  .container { max-width: 93vw; }
}
@media (max-width: 768px) {
  .container { max-width: 99vw; padding-left: 12px; padding-right: 12px; }
  .main-nav,
  .cta-primary { display: none !important; }
  .mobile-menu-toggle { display: flex !important; }
  .footer-wrapper { flex-direction: column; gap: 20px; }
  .testimonial-card { padding: 18px 16px 16px 16px; max-width: 98vw; }
  .feature-list,
  .service-list,
  .content-grid { flex-direction: column; gap: 16px; }
  .section { padding: 22px 6px; margin-bottom: 38px; }
  .thankyou-links { flex-direction: column; gap: 14px; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.12rem; }
  .testimonial-card { font-size: 0.99em; }
}
@media (max-width: 510px) {
  .cookie-modal-content { min-width: 93vw; max-width: 99vw; padding: 19px 8px 16px 8px; }
  .footer-nav { min-width: 120px; }
}
@media (max-width: 430px) {
  .testimonial-card { padding: 8px; }
  .feature-list li, .service-list li { min-width: 125px; padding: 12px 7px 12px 10px; }
}

/* ============= Transitions & Micro-Interactions ================== */
a, .cta-primary, .cta-secondary, .button,
.main-nav a, .footer-nav a, .mobile-nav a, .cookie-btn, .cookie-btn-settings {
  transition: color 0.18s, background 0.23s, transform 0.15s, box-shadow 0.13s;
}
img, .card, .testimonial-card, .feature-list li {
  transition: box-shadow 0.19s, transform 0.18s, border-color 0.21s;
}
.card:active, .feature-list li:active {
  transform: scale(0.99) rotate(-1deg);
}

/* ============== Misc ================ */
::-webkit-input-placeholder { color: #a0805a; opacity: 1; }
::-moz-placeholder { color: #a0805a; opacity: 1; }
:-ms-input-placeholder { color: #a0805a; opacity: 1; }
::placeholder { color: #a0805a; opacity: 1; }

/* =============== Hide native scrollbars for mobile nav overlay =========== */
.mobile-menu { overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ======== Special Utilities ========= */
.text-section { display: flex; flex-direction: column; gap: 18px; }

/* For accessibility: Focus outlines */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus, .cookie-btn:focus {
  outline: 2.5px solid var(--color-btn-hover);
  outline-offset: 2px;
  z-index: 2;
}

/* Hide the empty space left by main-nav/cta-primary on mobile */
@media (max-width: 768px) {
  header .container { gap: 6px; }
}

/* Hide .mobile-menu by default (overridden by .open) */
.mobile-menu { display: flex; }

/* End of CSS */
