/* =========================
   RischGiBet Herrenpflege - Style.css
   Vintage Retro Theme · Flexbox Only · Responsive · Cookie Banner
   ========================= */

/* =========================
   01. 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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background: #F3F1EB;
  color: #22313F;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
a:focus { outline: 2px dashed #92896B; outline-offset: 2px; }
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}
button { cursor: pointer; }

/* Typography Scale & Retro Fonts */
@import url('https://fonts.googleapis.com/css?family=Oswald:400,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1,h2,h3,h4,h5,h6 {
  font-family: 'Oswald', Arial, sans-serif;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
  font-weight: 700;
  color: #22313F;
  text-shadow: 0 1px 1px #d2cbb7;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.1;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  h1 { font-size: 3.25rem; }
  h2 { font-size: 2.4rem; }
  h3 { font-size: 1.7rem; }
  body { font-size: 18px; }
}

p, li, blockquote, cite {
  font-family: 'Roboto', Arial, sans-serif;
  color: #22313F;
  font-size: 1rem;
}
strong { font-weight: 700; }
blockquote {
  font-style: italic;
  font-family: 'Oswald', Arial, sans-serif;
  background: #F3F1EB;
  border-left: 5px solid #92896B;
  padding: 10px 16px 10px 20px;
  margin-bottom: 12px;
}
cite {
  font-size: 0.95rem;
  color: #92896B;
  font-style: normal;
}

/* =========================
   02. Layout Containers & Spacing
   ========================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff6dd;
  border-radius: 18px;
  box-shadow: 0 4px 16px 0 #e1d7bb7a;
}
@media (max-width: 768px) {
  .section,
  section {
    padding: 28px 8px;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.feature-list,
.service-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #F3F1EB;
  border-radius: 16px;
  box-shadow: 0 4px 14px #c2b8a97c;
  padding: 24px 20px;
  flex: 1 1 250px;
  max-width: 350px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 28px #a38c5e3a;
}
.content-grid, .service-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;
    gap: 18px;
  }
  .container { padding: 0 6px; }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  background: #fffbe7;
  border-radius: 14px;
  box-shadow: 0 2px 8px #beb5a17b;
  border: 1px solid #e9e3d2;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 22px #a38c5e4d;
  transform: translateY(-2px) scale(1.012);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  margin-bottom: 14px;
  font-size: 1.1rem;
  color: #22313F;
  background: #fffbf2;
  border-radius: 11px;
  padding: 16px 16px 16px 20px;
}

/* Ensure gap between all major elements */
.content-wrapper > * { margin-bottom: 20px; }
.content-wrapper > :last-child { margin-bottom: 0; }

/* =========================
   03. Retro Color Palette
   ========================= */
:root {
  --primary: #22313F;
  --secondary: #92896B;
  --accent: #F3F1EB;
  --cta: #92896B;
  --light-bg: #fff6dd;
  --vintage-border: #92896B;
  --vintage-shadow: #e1d7bb7a;
}

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

section, .section {
  background: var(--light-bg);
  border: 1px solid #e9e3d2;
  box-shadow: 0 4px 16px 0 var(--vintage-shadow);
}

/* Patterns & Borders */
section, .section {
  background-image: repeating-linear-gradient(135deg, #f9f3e2 0 10px, transparent 10px 20px);
  background-size: 60px 60px;
}

@media (max-width: 768px) {
  section, .section {
    background-size: 36px 36px;
  }
}

/* =========================
   04. Header, Nav, Burger Menu
   ========================= */
header {
  background: #fffbe7;
  border-bottom: 3px solid var(--vintage-border);
  box-shadow: 0 3px 15px #eae5d3c2;
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px 16px;
}
header img {
  height: 48px;
  width: auto;
}
nav.main-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Oswald', Arial, sans-serif;
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 0;
  position: relative;
  transition: color 0.18s;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 3px;
  width: 0%;
  background: var(--secondary);
  border-radius: 2px;
  transition: width 0.2s;
  margin-top: 2px;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--secondary);
}
.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 65%;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', Arial, sans-serif;
  color: #fff;
  background: var(--secondary);
  border-radius: 14px;
  padding: 12px 30px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px #aa9166;
  box-shadow: 0 2px 8px #bca16b56;
  border: 2px solid var(--primary);
  transition: background 0.18s, color 0.18s, transform 0.14s;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--primary);
  color: #fffbe7;
  transform: translateY(-1px) scale(1.04);
  border-color: var(--secondary);
}

/* Burger Icon for mobile */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #fff;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 120;
  border: none;
  box-shadow: 0 1px 4px #bca16b44;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--primary);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 93vw;
  max-width: 340px;
  height: 100vh;
  background: #fff6dd;
  box-shadow: 2px 0 48px #92896B55;
  transform: translateX(-110%);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.53,0.12,0.21,0.91), opacity 0.21s;
  z-index: 500;
  padding: 34px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  color: var(--primary);
  border: none;
  margin-bottom: 35px;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: 'Oswald', Arial, sans-serif;
  width: 100%;
}
.mobile-nav a {
  padding: 11px 0;
  color: var(--primary);
  font-weight: 600;
  border-bottom: 1px solid #dfd3ad;
  font-size: 1.08rem;
  transition: color 0.16s, background 0.17s;
  border-radius: 5px;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #eee5cd;
  color: var(--secondary);
}

@media (max-width: 1024px) {
  .main-nav, .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  nav.main-nav, .cta-button { display: flex; }
}

/* =========================
   05. Hero & CTA
   ========================= */
.hero {
  color: #fffbe7;
  border-radius: 0 0 40px 40px;
  margin-bottom: 40px;
  box-shadow: 0 12px 40px #92896B69;
  background-image: repeating-linear-gradient(-45deg, #f0e2b9 0 14px, transparent 14px 40px);
}
.hero h1, .hero p {
  color: #22313F;
  text-shadow: 0 1px 2px #E6DFCF;
}
.hero .cta-button {
  margin-top: 22px;
  font-size: 1.18rem;
}

.cta {
  background: #f0e2b9;
  border-radius: 22px;
  box-shadow: 0 2px 22px #b6a37b26;
  text-align: center;
}
.cta .cta-button {
  margin-top: 20px;
}

/* =========================
   06. Features, Services, Cards
   ========================= */
.features .feature-list li, .features-why .feature-list li, .produkte-features .feature-list li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid #e9e3d2;
  padding: 13px 20px;
  border-radius: 9px;
  font-size: 1.08rem;
  box-shadow: 0 1px 7px #e3dbbc58;
}
.features .feature-list img {
  width: 30px;
  height: 30px;
  filter: sepia(30%) contrast(110%);
}
.service-grid li {
  flex: 1 1 260px;
  background: #fffbe7;
  border-radius: 13px;
  padding: 18px 22px;
  box-shadow: 0 1px 8px #bca16b28;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #f5eed8;
  min-width: 230px;
  transition: box-shadow 0.21s, border-color 0.14s;
}
.service-grid li:hover {
  box-shadow: 0 7px 22px #a38c5e36;
  border-color: var(--secondary);
}
.service-grid a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.14s;
  margin-top: 5px;
}
.service-grid a:hover {
  color: var(--secondary);
}

.service-list li {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 1px 6px #dac89c2a;
  padding: 13px 18px;
  margin-bottom: 11px;
  align-items: center;
  border: 1px solid #eadfc4;
  font-size: 1.07rem;
}
.service-list li span {
  color: var(--secondary);
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 700;
  min-width: 66px;
  text-align: right;
  display: inline-block;
  margin-left: 10px;
  font-size: 1.04rem;
}

/* =========================
   07. Testimonial Styles (Galerie)
   ========================= */
.galerie-testimonials {
  background: #fffbe6;
}
.galerie-testimonials .testimonial-card {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid #92896B;
  margin-bottom: 30px;
  align-items: flex-start;
  gap: 12px;
}
.galerie-testimonials .testimonial-card blockquote {
  background: none!important;
  border-left: 5px solid #92896B;
  color: #22313F;
  margin-bottom: 2px;
}
.galerie-testimonials .testimonial-card div {
  color: #e3b208;
  font-size: 1.25rem;
  margin-bottom: 3px;
  font-family: 'Oswald', Arial, sans-serif;
  letter-spacing: 1.7px;
}
.galerie-testimonials .testimonial-card cite {
  color: #92896B;
}

/* =========================
   08. About, Philosophy, Datenschutzerklärung
   ========================= */
.about-philosophy, .datenschutz-section, .gdpr-section, .cookie-section, .terms-section {
  background: #fff6dd;
  border: 1px solid #e3daa7;
  box-shadow: 0 9px 32px #d6ca9872;
  border-radius: 15px;
}

/* =========================
   09. Footer
   ========================= */
footer {
  background: var(--primary);
  color: #fffbe7;
  padding: 45px 0 25px 0;
  border-top: 3px solid var(--secondary);
  box-shadow: 0 -2px 16px #92896b48;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  gap: 22px;
  align-items: center;
}
.footer-branding img {
  height: 38px;
  width: auto;
  margin-bottom: 5px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: 'Oswald', Arial, sans-serif;
}
.footer-nav a {
  color: #fff8d8;
  opacity: 0.95;
  font-size: 0.97rem;
  transition: color 0.15s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--secondary);
}
.footer-info p {
  color: #fffbe7;
  opacity: 0.84;
  font-size: 0.98rem;
  margin-top: 3px;
}

/* =========================
   10. Cookie Consent Banner
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #92896B;
  color: #fffbe7;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px 22px 20px;
  z-index: 9999;
  box-shadow: 0 -6px 40px #92896B80;
  gap: 20px;
  animation: cookie-fade-in 0.6s cubic-bezier(0.29,0.77,0.65,1);
  font-size: 1rem;
  flex-wrap: wrap;
}
@keyframes cookie-fade-in {
  from { opacity: 0; transform: translateY(50px);} to { opacity: 1; transform: none; }
}
.cookie-banner .cookie-text {
  flex: 1 1 220px;
  font-size: 1.08rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #fffbe7;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
}
.cookie-banner button {
  border-radius: 8px;
  padding: 9px 20px;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: bold;
  border: none;
  background: #fffbe7;
  color: #92896B;
  box-shadow: 0 1px 8px #b5a86b25;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.12s;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #f7e49d;
  color: #22313F;
  transform: translateY(-1px) scale(1.03);
}
.cookie-banner .cookie-reject {
  background: #fbeee0;
  color: #92896B;
  border: 2px solid #e9e3d2;
}
.cookie-banner .cookie-reject:hover,
.cookie-banner .cookie-reject:focus {
  background: #e1d7bb;
  color: var(--primary);
}
.cookie-banner .cookie-settings {
  background: transparent;
  color: #fffbe7;
  border: 2px solid #fffbe7;
}
.cookie-banner .cookie-settings:hover,
.cookie-banner .cookie-settings:focus {
  background: #fffbe7;
  color: #92896B;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 5vw 20px 5vw;
    font-size: 0.99rem;
    gap: 13px;
  }
  .cookie-banner .cookie-actions { gap: 8px; }
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34, 49, 63, 0.45);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fade-in 0.23s ease;
}
@keyframes cookie-modal-fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff6dd;
  color: var(--primary);
  border-radius: 16px;
  box-shadow: 0 9px 32px #d6ca9872;
  padding: 32px 32px 22px 32px;
  min-width: 300px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
}
@media (max-width: 500px) {
  .cookie-modal { padding: 18px 12px 14px 12px; min-width: 0; }
}
.cookie-modal h2 {
  font-size: 1.36rem;
  margin-bottom: 6px;
}
.cookie-modal ul {
  margin-top: 8px;
  padding-left: 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
  font-size: 1.04rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 20px;
  height: 20px;
  margin-right: 2px;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions button {
  padding: 9px 20px;
  border-radius: 9px;
  background: #92896b;
  color: #fff6dd;
  border: none;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.01rem;
  transition: background 0.14s;
}
.cookie-modal .modal-actions button:hover,
.cookie-modal .modal-actions button:focus {
  background: #22313F;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 17px;
  background: none;
  color: var(--primary);
  font-size: 1.7rem;
  border: none;
  cursor: pointer;
  opacity: 0.75;
  transition: color 0.15s;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  color: var(--secondary);
  opacity: 1;
}

/* =========================
   11. Animations & Interactions
   ========================= */
.card, .testimonial-card, .cta-button, .cookie-banner button, .mobile-menu, .mobile-menu-close {
  transition: box-shadow 0.19s, background 0.15s, color 0.15s, transform 0.16s;
}
.card:hover, .service-grid li:hover, .testimonial-card:hover {
  box-shadow: 0 10px 36px #a38c5e31;
  transform: scale(1.018);
}

a, .cta-button, button, .mobile-nav a {
  transition: color 0.14s, background 0.14s, border-color 0.14s, box-shadow 0.18s;
}

/* =========================
   12. Misc Components & Accessibility
   ========================= */
::-webkit-scrollbar{
 width: 9px;
 background: #f9f3e2;
}
::-webkit-scrollbar-thumb{
 background: #92896B;
 border-radius: 8px;
}

/* For retro appearance: add subtle grain effect only on desktop */
@media (min-width:1025px) {
  body:before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle fill="%23e4ddb6" fill-opacity=".09" cx="45" cy="25" r="1.4"/><circle fill="%23bda66e" fill-opacity=".06" cx="70" cy="80" r="1.2"/><circle fill="%233b2b12" fill-opacity=".07" cx="17" cy="67" r="0.85"/></svg>');
    opacity: 0.45;
    z-index: 0;
  }
}

/* Selection Colors */
::selection {
  background: #fff6a2;
  color: #22313F;
}

/* =========================
   13. Utility, Responsive Tweaks
   ========================= */
@media (max-width: 768px) {
  .container { padding-left: 4px; padding-right: 4px; }
  section, .section { padding: 20px 5px; margin-bottom: 36px; }
  .content-grid, .service-grid { flex-direction: column; }
  .card, .service-grid li {
    max-width: 100%; width: 100%;
    flex: 1 1 100%;
  }
  nav.main-nav { display: none !important; }
}

@media (max-width: 520px) {
  footer .container { padding-left: 2px; padding-right: 2px; }
  .footer-nav { gap: 8px; font-size: 0.93rem; flex-wrap: wrap; }
  .footer-info p { font-size: 0.91rem; }
}

/* Hide non-vital elements on very small viewports if needed */
@media (max-width: 400px) {
  .footer-branding img { height: 28px; }
}

/* =========================
   END OF STYLE.CSS
   ========================= */
