/* =============================
   Kelle & Kante Renovierung
   style.css — Minimalist Flexbox UI
   ============================= */

/* ===== CSS RESET / NORMALIZE (mobile-first) ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2937;
  background: #ffffff;
  line-height: 1.6;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
figure {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid #2c3e50;
  outline-offset: 2px;
}

/* ===== CSS VARIABLES (with fallbacks) ===== */
:root {
  --primary: #2c3e50;
  --secondary: #8a4b00;
  --accent: #f4f5f7;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --radius: 10px;
  --radius-sm: 8px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-60: 60px;
  --transition: 180ms ease;
}

/* ===== TYPOGRAPHY ===== */
.display-font,
h1,
h2,
h3 {
  font-family: "Trebuchet MS", Tahoma, Arial, sans-serif;
  letter-spacing: -0.2px;
}
body {
  font-size: 16px;
}
h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}
h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
h3 {
  font-size: 18px;
  font-weight: 700;
}
.sub {
  color: var(--muted);
  font-size: 16px;
}

/* Responsive type */
@media (min-width: 768px) {
  h1 {
    font-size: 40px;
  }
  h2 {
    font-size: 28px;
  }
  h3 {
    font-size: 20px;
  }
  .sub {
    font-size: 18px;
  }
}
@media (min-width: 1100px) {
  h1 {
    font-size: 48px;
  }
}

/* ===== GLOBAL LAYOUT (Flex-only) ===== */
.container {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 var(--space-16);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  width: 100%;
  max-width: 1120px;
}

/* Sections spacing (global) */
section {
  padding: var(--space-40) 0;
  margin-bottom: var(--space-60);
  background: transparent;
}

/* ===== MANDATORY SPACING & ALIGNMENT PATTERNS ===== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--space-20);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Responsive alignment */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== HEADER ===== */
header {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
header .content-wrapper {
  padding: var(--space-16) 0;
  gap: var(--space-16);
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand img {
  height: 36px;
  width: auto;
}

/* Header text tagline area */
header .text-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
}
header .text-section strong {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

/* Main navigation */
.main-nav {
  display: none;
  align-items: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover {
  background: var(--accent);
  color: var(--primary);
}

/* Desktop header layout */
@media (min-width: 992px) {
  header .content-wrapper {
    flex-direction: row;
    justify-content: space-between;
  }
  header .text-section {
    order: 2;
  }
  .main-nav {
    display: flex;
    order: 3;
  }
}

/* ===== HERO ===== */
.hero {
  background: var(--accent);
  border-bottom: 1px solid var(--border);
}
.hero .content-wrapper {
  padding: var(--space-24) 0;
  gap: var(--space-16);
}
.hero h1 {
  color: var(--primary);
}
.hero .sub {
  max-width: 70ch;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--primary);
}

/* ===== TEXT BLOCKS ===== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}
.text-section p {
  max-width: 75ch;
}
.text-section ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.text-section ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 1.25rem;
}
.text-section li {
  color: var(--text);
}
.text-section li img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.85;
}

/* ===== BUTTONS ===== */
.btn-primary,
.mobile-nav a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white)!important;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), background var(--transition),
    box-shadow var(--transition);
}
.btn-primary:hover {
  background: #233240;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: var(--primary);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: background var(--transition), color var(--transition),
    border-color var(--transition);
}
.btn-secondary:hover {
  background: var(--accent);
  border-color: #d1d5db;
}

/* Link styles in content */
.content-wrapper a {
  color: var(--primary);
}
.content-wrapper a:hover {
  color: #223548;
}

/* ===== TESTIMONIALS (contrast safe) ===== */
.testimonial-card p {
  color: var(--text);
}
.testimonial-card div {
  color: var(--muted);
}

/* ===== LIST SECTIONS WITH ICONS ===== */
/* If list should align icons and text inline */
.text-section ul li {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--white);
  border-top: 1px solid var(--border);
}
footer .content-wrapper {
  padding: var(--space-24) 0;
  gap: var(--space-24);
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
}
footer nav a {
  color: var(--text);
}
footer nav a:hover {
  color: var(--primary);
}

@media (min-width: 992px) {
  footer .content-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* ===== CARDS & CALLOUTS ===== */
.content-wrapper > .testimonial-card,
.content-wrapper > .card,
.content-wrapper > .text-section,
.content-wrapper > nav {
  margin-bottom: 0;
}

/* ===== MOBILE NAVIGATION (Hamburger) ===== */
.mobile-menu-toggle {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 10001;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.mobile-menu-toggle:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* Hide toggle on desktop */
@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile Menu Panel */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 360px;
  background: var(--white);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 260ms ease;
  z-index: 10000;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-close {
  align-self: flex-end;
  margin: 12px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 16px 24px;
  overflow-y: auto;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 12px 10px;
  border-radius: 8px;
  color: var(--text);
  border: 1px solid transparent;
}
.mobile-nav a:hover {
  background: var(--accent);
  border-color: var(--border);
}

/* Hide main nav on mobile by default (mobile-first) */
.main-nav {
  display: none;
}

/* Show desktop nav */
@media (min-width: 992px) {
  .main-nav {
    display: flex;
  }
}

/* Ensure header content doesn't hide behind toggle */
@media (max-width: 991px) {
  header .content-wrapper {
    padding-top: 64px;
  }
}

/* ===== BREADTH & UTILITIES ===== */
.muted {
  color: var(--muted);
}
.hr {
  height: 1px;
  background: var(--border);
  width: 100%;
}

/* ===== FORMS (generic future-proof) ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.12);
}
label {
  font-weight: 600;
  margin-bottom: 6px;
  display: inline-block;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  display: flex;
  justify-content: center;
  padding: 12px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 260ms ease, opacity 260ms ease;
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner .cookie-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  width: 100%;
  max-width: 1120px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: var(--space-16);
}
.cookie-banner p {
  color: var(--text);
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-cookie-accept {
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
}
.btn-cookie-accept:hover {
  background: #233240;
}
.btn-cookie-reject {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
}
.btn-cookie-reject:hover {
  background: var(--accent);
}
.btn-cookie-settings {
  background: transparent;
  color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
}
.btn-cookie-settings:hover {
  background: var(--accent);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.cookie-modal.show {
  display: flex;
}
.cookie-modal-content {
  background: var(--white);
  width: 92%;
  max-width: 640px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  padding: var(--space-24);
}
.cookie-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.cookie-row:last-child {
  border-bottom: 0;
}
.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 46px;
  height: 26px;
  background: #e5e7eb;
  border-radius: 999px;
  transition: background var(--transition);
  cursor: pointer;
}
.toggle::after {
  content: "";
  width: 22px;
  height: 22px;
  background: var(--white);
  border: 1px solid #d1d5db;
  border-radius: 50%;
  transform: translateX(2px);
  transition: transform var(--transition);
  box-shadow: var(--shadow-sm);
}
.toggle.active {
  background: #2c3e50;
}
.toggle.active::after {
  transform: translateX(22px);
}

/* ===== ACCESSIBLE HOVER / ACTIVE ===== */
a,
button {
  transition: color var(--transition), background var(--transition),
    border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

/* ===== ICON ALIGNMENT IN PARAGRAPHS ===== */
.text-section p img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

/* ===== LINKS IN FOOTER & CONTENT ===== */
footer .text-section a {
  color: var(--primary);
}
footer .text-section a:hover {
  color: #223548;
}

/* ===== BORDERS BETWEEN BLOCKS (optional) ===== */
.content-wrapper > section,
.content-wrapper > .text-section {
  border: 0;
}

/* ===== UTIL CARD WRAPS FOR RESPONSIVE ROWS ===== */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-20);
}
.col {
  display: flex;
  flex-direction: column;
  flex: 1 1 280px;
  gap: var(--space-12);
}

/* ===== PAGE-SPECIFIC MINOR TWEAKS ===== */
/* Testimonials in lists spacing */
section .testimonial-card + .testimonial-card {
  margin-top: var(--space-16);
}

/* Strong emphasis inside content */
.text-section strong {
  color: var(--text);
}
.text-section em {
  color: var(--muted);
}

/* Contact details lines */
.text-section a {
  text-decoration: none;
}
.text-section a:hover {
  text-decoration: underline;
}

/* ===== DESKTOP ENHANCEMENTS ===== */
@media (min-width: 768px) {
  .hero .content-wrapper {
    padding: var(--space-32) 0;
    gap: var(--space-20);
  }
}

/* ===== CARD HOVERS & MICRO-ANIMATIONS ===== */
.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== NAV INLINE BUTTON (CTA) ===== */
.main-nav .btn-primary {
  padding: 10px 14px;
}

/* ===== BRANDING COLORS IN SMALL BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary);
  font-size: 12px;
}

/* ===== PRINT STYLES (basic) ===== */
@media print {
  .mobile-menu-toggle,
  .mobile-menu,
  nav.main-nav,
  .btn-primary,
  .btn-secondary,
  .cookie-banner,
  .cookie-modal {
    display: none !important;
  }
  a {
    text-decoration: underline;
    color: #000;
  }
  header,
  footer {
    box-shadow: none;
    border: 0;
  }
}

/* ===== ENSURE MIN 20PX BETWEEN CARDS/SECTIONS ===== */
.content-wrapper > * + * {
  margin-top: 20px;
}

/* ===== ALIGNMENT HELPERS ===== */
.center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.left {
  display: flex;
  align-items: flex-start;
}

/* ===== ACCESSIBILITY CONTRAST FOR TESTIMONIALS ===== */
/* Dark text on light background already ensured; add extra rule if accent used */
.testimonial-card.accent {
  background: var(--accent);
  border-color: #dde1e6;
}

/* ===== HEADER STACKING ===== */
header {
  z-index: 900;
}

/* ===== ADDITIONAL PAGE ELEMENTS ===== */
/* Breadcrumb spacing below hero for pages where present */
.hero .breadcrumb {
  margin-bottom: 4px;
}

/* ===== SAFE SPACING BETWEEN SECTIONS ===== */
main > section + section {
  margin-top: 20px;
}

/* Done */
