/*
Theme Name: Michael Koch Bedachungen
Theme URI: https://michael-koch-bedachungen-1.lead.bummeltech.com/
Author: Michael Koch Bedachungen
Description: Barrierearmes, hochwertiges Theme fuer die Dachdeckerei Michael Koch Bedachungen (Langenfeld). Design-Variante "Accessible & Ethical": High-Contrast, grosse Schrift, semantisches HTML, klare Fokus-States, natuerliche Schiefer-/Kupfer-Farbwelt. Alle Inhalte im wp-admin pflegbar (Customizer, Slides, Leistungen, Seiten, Menues).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mkb
*/

/* ==========================================================================
   DESIGN TOKENS  (Accessible & Ethical  ·  natuerliche Schiefer/Kupfer-Palette)
   Farben werden fuer den Akzent zur Laufzeit aus dem Customizer ueberschrieben.
   ========================================================================== */
:root {
  /* Farben */
  --c-bg:          #F7F6F3;   /* warmes Off-White  */
  --c-surface:     #FFFFFF;
  --c-surface-2:   #F1EEE9;
  --c-ink:         #1A1D21;   /* Fliesstext, ~14:1 auf --c-bg */
  --c-ink-soft:    #3D434B;
  --c-primary:     #26313D;   /* Schiefer-Anthrazit */
  --c-primary-2:   #33414F;
  --c-accent:      #B45309;   /* gedaempftes Kupfer / Dachziegel-Ton */
  --c-accent-strong:#8A3D06;  /* fuer Fliesstext-Links (>=7:1) */
  --c-on-accent:   #FFFFFF;
  --c-border:      #D9D4CC;
  --c-muted:       #EDE9E3;
  --c-focus:       #0369A1;   /* deutlich sichtbarer Fokus-Ring */

  /* Typografie */
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --fs-base: 1.125rem;         /* 18px – grosse, gut lesbare Basisschrift */
  --lh-base: 1.7;

  /* Spacing / Layout */
  --maxw: 1200px;
  --gap: clamp(1rem, 2vw, 1.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 14px;
  --radius-sm: 10px;

  /* Effekte */
  --shadow-sm: 0 1px 2px rgba(26,29,33,.06), 0 2px 6px rgba(26,29,33,.06);
  --shadow-md: 0 6px 18px rgba(26,29,33,.10), 0 2px 6px rgba(26,29,33,.06);
  --shadow-lg: 0 24px 48px rgba(26,29,33,.16), 0 8px 20px rgba(26,29,33,.10);
  --ring: 3px solid var(--c-focus);
  --touch: 44px;
  --dur: 220ms;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

a { color: var(--c-accent-strong); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1,h2,h3,h4 {
  font-family: var(--font-head);
  color: var(--c-primary);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.35em; }
li { margin: .35em 0; }
strong { font-weight: 700; color: var(--c-ink); }
blockquote {
  margin: 1.5em 0; padding: 1rem 1.5rem;
  border-left: 5px solid var(--c-accent);
  background: var(--c-surface-2);
  font-style: italic; color: var(--c-ink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ==========================================================================
   ACCESSIBILITY  ·  Fokus, Skip-Link, Screenreader
   ========================================================================== */
:focus-visible {
  outline: var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Fallback fuer Browser ohne :focus-visible */
a:focus, button:focus, input:focus, textarea:focus, select:focus,
[tabindex]:focus { outline: var(--ring); outline-offset: 3px; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  z-index: 2000;
  background: var(--c-primary); color: #fff;
  padding: .9rem 1.25rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; outline: var(--ring); outline-offset: 2px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Alle klickbaren Elemente: Zeiger + Mindest-Touch-Groesse */
a, button, [role="button"], input[type="submit"], .mkb-btn { cursor: pointer; }

/* ==========================================================================
   LAYOUT HELPERS
   ========================================================================== */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.container-wide { width: min(100% - 2.5rem, 1360px); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--muted { background: var(--c-surface-2); }
.section--primary { background: var(--c-primary); color: #E9EDF1; }
.section--primary h2, .section--primary h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .82rem; color: var(--c-accent-strong);
  margin: 0 0 .9rem;
}
.eyebrow::before { content:""; width: 26px; height: 3px; background: var(--c-accent); border-radius: 2px; }
.section--primary .eyebrow { color: #E8B587; }
.section--primary .eyebrow::before { background: var(--c-accent); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.lead { font-size: 1.2rem; color: var(--c-ink-soft); }

/* ==========================================================================
   BUTTONS  (>=44px Touch-Target, klare Hover/Focus)
   ========================================================================== */
.mkb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: var(--touch); padding: .8rem 1.5rem;
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 600;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  text-decoration: none; line-height: 1.1;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.mkb-btn svg { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.mkb-btn--primary { background: var(--c-accent); color: var(--c-on-accent); box-shadow: var(--shadow-sm); }
.mkb-btn--primary:hover { background: var(--c-accent-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mkb-btn--ghost { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.mkb-btn--ghost:hover { background: var(--c-primary); color: #fff; transform: translateY(-2px); }
.mkb-btn--ondark { background: #fff; color: var(--c-primary); }
.mkb-btn--ondark:hover { background: var(--c-muted); transform: translateY(-2px); }
.mkb-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.mkb-btn--outline-light:hover { background: rgba(255,255,255,.12); border-color:#fff; }

@media (prefers-reduced-motion: reduce) {
  .mkb-btn:hover { transform: none; }
}
