/* Patto Imbav Badmanufaktur - style.css (Monochrome Sophisticated) */
/* --------------------------------------------------------------------------
   RESET & NORMALIZE
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0 0 16px; padding-left: 20px; }
p { margin: 0 0 16px; }

/* --------------------------------------------------------------------------
   THEME TOKENS (Monochrome Sophisticated)
   Using grayscale palette for a timeless, high-contrast look
   -------------------------------------------------------------------------- */
:root {
  --bg-0: #ffffff;         /* base */
  --bg-1: #f7f7f8;         /* subtle background */
  --bg-2: #eeeeef;         /* panels */
  --text-0: #0d0d0f;       /* primary text */
  --text-1: #2a2a2e;       /* secondary text */
  --text-2: #6b6b70;       /* muted text */
  --line: #e5e5e8;         /* borders */
  --shadow-1: rgba(0, 0, 0, 0.06);
  --shadow-2: rgba(0, 0, 0, 0.12);
  --focus: #111111;
  --cta-bg: #111111;       /* button primary (dark) */
  --cta-fg: #ffffff;       /* button text on dark */
  --cta-hover: #000000;    /* hover darker */
  --link: #0d0d0f;         /* link color (monochrome) */
  --link-muted: #4a4a50;
  --hero-bg: #0f1012;      /* dramatic contrast */
  --hero-fg: #ffffff;
}

/* Fonts from brand guidelines (monochrome palette applied) */
body {
  font-family: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, sans-serif;
  color: var(--text-0);
  background: var(--bg-0);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: "Trebuchet MS", Trebuchet, Arial, sans-serif; color: var(--text-0); margin: 0 0 12px; letter-spacing: 0.2px; }
h1 { font-size: 40px; line-height: 1.2; }
h2 { font-size: 28px; line-height: 1.3; margin-top: 8px; }
h3 { font-size: 20px; line-height: 1.4; color: var(--text-1); }
h4 { font-size: 18px; line-height: 1.4; color: var(--text-1); }

@media (min-width: 992px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}

p, li { color: var(--text-1); font-size: 16px; }
small, .tagline { color: var(--text-2); font-size: 14px; }
strong { color: var(--text-0); font-weight: 700; }

/* Links */
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--text-0); text-decoration: underline; }

/* Focus states */
:focus { outline: 2px solid var(--focus); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   LAYOUT PRIMITIVES (Flexbox only)
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  display: flex;            /* flex required */
  justify-content: center;  /* center inner wrapper */
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  max-width: 1140px;
  display: flex;            /* flex required */
  flex-direction: column;   /* mobile-first */
  gap: 16px;
}

/* Mandatory spacing patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Apply section rhythm to semantic sections too */
main section { margin-bottom: 60px; }
main section .content-wrapper { padding: 40px 0; }

/* Cards & panels */
.card, .text-section, .testimonial-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 2px var(--shadow-1);
}
.text-section { padding: 20px; display: flex; flex-direction: column; gap: 8px; border-left: 4px solid #1a1a1b; }
.testimonial-card { background: #fbfbfc; color: var(--text-0); }

/* Micro-interactions */
.card:hover, .text-section:hover, .testimonial-card:hover {
  box-shadow: 0 8px 24px var(--shadow-1), 0 2px 8px var(--shadow-2);
  transform: translateY(-2px);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

/* --------------------------------------------------------------------------
   HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
header {
  background: var(--bg-0);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1000;
}
header .content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 34px; width: auto; }
.brand .tagline { display: none; }
@media (min-width: 992px) { .brand .tagline { display: inline-flex; }
}

.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-1);
  transition: background 150ms ease, color 150ms ease;
}
.main-nav a:hover { background: var(--bg-1); color: var(--text-0); }
.main-nav a[aria-current="page"] { color: var(--text-0); background: var(--bg-1); font-weight: 700; }

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

/* --------------------------------------------------------------------------
   MOBILE NAVIGATION (Burger Menu)
   -------------------------------------------------------------------------- */
.mobile-menu-toggle {
  position: fixed;          /* keep reachable */
  top: 14px; right: 14px;
  z-index: 1100;
  background: var(--cta-bg);
  color: var(--cta-fg);
  border: 0; border-radius: 8px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px var(--shadow-2);
}
@media (min-width: 992px) { .mobile-menu-toggle { display: none; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 1090;
  background: var(--bg-0);
  transform: translateX(100%);
  transition: transform 280ms ease;
  display: flex; flex-direction: column; /* flex container */
}
.mobile-menu.active { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end;
  margin: 16px;
  background: transparent; border: 0; color: var(--text-0);
  width: 44px; height: 44px; border-radius: 8px;
}
.mobile-nav {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 20px 30px;
}
.mobile-nav a {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}
.mobile-nav a:last-child { border-bottom: 0; }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero { background: var(--hero-bg); color: var(--hero-fg); }
.hero .content-wrapper { padding: 56px 0; gap: 16px; }
.hero h1, .hero p { color: var(--hero-fg); }
.hero ul { color: #e9e9ea; }
.hero a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; margin-right: 10px; margin-top: 6px;
  border-radius: 10px; border: 1px solid #2a2a2c;
  background: #1a1b1e; color: var(--cta-fg);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35) inset, 0 4px 14px rgba(0,0,0,0.25);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.hero a:hover { background: #0f1012; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,0.38) inset, 0 6px 18px rgba(0,0,0,0.28); }

/* CTA-like links inside sections (for primary actions) */
.content-wrapper > div > a, .content-wrapper > a[href] {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; margin-right: 8px; margin-top: 6px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-0); color: var(--text-0);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.content-wrapper > div > a:hover, .content-wrapper > a[href]:hover {
  background: var(--bg-1);
  box-shadow: 0 6px 16px var(--shadow-1);
  transform: translateY(-1px);
}

/* Trust badges & meta strips */
.trust-badges {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px; border: 1px dashed #2b2b2e; border-radius: 8px; color: #e9e9ea;
  background: rgba(255,255,255,0.03);
}

/* --------------------------------------------------------------------------
   CONTENT ELEMENTS
   -------------------------------------------------------------------------- */
li { margin-bottom: 8px; }

.text-image-section img { border-radius: 10px; box-shadow: 0 8px 24px var(--shadow-1); }

/* Data blocks and stats */
.stats { display: flex; flex-wrap: wrap; gap: 20px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; }

/* Testimonials - light background with dark text for readability */
.testimonial-card p { margin: 0; }
.testimonial-card p + p { color: var(--text-2); }

/* Lists within cards */
.text-section ul, .text-section ol { margin: 4px 0 0 16px; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
footer { background: var(--bg-0); border-top: 1px solid var(--line); }
footer .content-wrapper {
  padding: 32px 0; gap: 24px; align-items: flex-start;
  display: flex; flex-wrap: wrap; flex-direction: row;
}
footer img { height: 28px; }
footer nav { display: flex; flex-direction: column; gap: 10px; }
footer a { color: var(--link-muted); }
footer a:hover { color: var(--text-0); text-decoration: underline; }

.brand-footer { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.social-footer { display: flex; flex-direction: column; gap: 8px; }

/* --------------------------------------------------------------------------
   BUTTONS (utility classes, optional)
   -------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-0); color: var(--text-0); transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.btn:hover { background: var(--bg-1); box-shadow: 0 6px 16px var(--shadow-1); transform: translateY(-1px); }
.btn-primary { background: var(--cta-bg); color: var(--cta-fg); border-color: #000; }
.btn-primary:hover { background: var(--cta-hover); }
.btn-ghost { background: transparent; border-color: var(--line); }

/* --------------------------------------------------------------------------
   COOKIE CONSENT BANNER & MODAL
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  background: #111214; color: #ffffff;
  border-top: 1px solid #2a2a2e;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.25);
  transform: translateY(100%);
  transition: transform 280ms ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner .container { padding: 0 16px; }
.cookie-banner .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.cookie-banner .text { display: flex; flex-direction: column; gap: 8px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { border-color: #2a2a2e; color: #f5f5f6; }
.cookie-actions .btn:hover { background: #1a1b1e; }
.cookie-actions .btn-primary { background: #f5f5f6; color: #111; border-color: #f5f5f6; }
.cookie-actions .btn-primary:hover { background: #ffffff; }

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed; inset: 0; z-index: 1210; background: rgba(0,0,0,0.5);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.cookie-modal.open { display: flex; }
.cookie-modal .modal-panel {
  background: var(--bg-0); color: var(--text-0);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  width: 100%; max-width: 720px;
  display: flex; flex-direction: column; gap: 16px; padding: 20px;
}
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   ACCESSIBILITY & UTILITIES
   -------------------------------------------------------------------------- */
.hidden { display: none !important; }
.muted { color: var(--text-2) !important; }
.centered { display: flex; align-items: center; justify-content: center; }

/* --------------------------------------------------------------------------
   RESPONSIVE RULES
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
  .content-wrapper { gap: 14px; }
  .hero .content-wrapper { padding: 40px 0; }
  .cookie-banner .content-wrapper { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   PAGE-SPECIFIC POLISH
   -------------------------------------------------------------------------- */
/* Index and general lists of strengths/services */
main section h2 + .text-section, main section h2 + p, main section h2 + ul, main section h2 + ol { margin-top: 8px; }

/* Contact details rows with small icons */
.content-wrapper p img[alt^="Telefon"],
.content-wrapper p img[alt^="E-Mail"],
.content-wrapper p img[alt^="Adresse"],
.content-wrapper p img[alt^="Erfolg"],
.content-wrapper p img[alt^="Telefon"],
.content-wrapper p img[alt^="Telefon"] {
  display: inline-flex; vertical-align: middle; margin-right: 8px; filter: grayscale(100%);
}

/* Footer contact columns spacing */
.contact-footer { display: flex; flex-direction: column; gap: 6px; }

/* Ordered lists spacing */
ol { padding-left: 20px; }
ol li { margin-bottom: 8px; }

/* Section backgrounds alternation for rhythm (subtle) */
main section:nth-of-type(2n) .content-wrapper { background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 32px; }

/* --------------------------------------------------------------------------
   NAV LINK STATES IN HERO (if present)
   -------------------------------------------------------------------------- */
.hero .main-nav a { color: #d7d7d8; }
.hero .main-nav a:hover { color: #ffffff; background: rgba(255,255,255,0.06); }

/* --------------------------------------------------------------------------
   TABLES (if any appear in content)
   -------------------------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; margin: 16px 0; }
th, td { border: 1px solid var(--line); padding: 10px; text-align: left; }
th { background: var(--bg-1); color: var(--text-0); }

/* --------------------------------------------------------------------------
   PRINT BASICS
   -------------------------------------------------------------------------- */
@media print {
  .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  header { position: static; }
  a { text-decoration: underline; }
}

/* --------------------------------------------------------------------------
   NOTES
   - Flexbox is used for all layout containers (no CSS Grid/Columns used)
   - Testimonials use light backgrounds with dark text for accessibility
   - Typography scale: 14 / 16 / 18 / 24 / 32 / 48 via responsive headings
   - Spacing rhythm respects required margins, gaps, and paddings
   -------------------------------------------------------------------------- */
