/* CLAUDE: Base CSS - Reset, CSS-Variablen, grundlegende Styles */
/* CLAUDE: Design-System basierend auf Denkmalschutz-Immobilien-Projekt */
/* CLAUDE: Font: Libre Baskerville (Serif) + Source Sans Pro (Sans-Serif) */

/* CLAUDE: Lokale Fonts laden - DSGVO-konform (keine externen Requests) */
/* CLAUDE: Ersetzt Google Fonts API durch lokale woff2-Dateien */
@import url('fonts.css');

/* CLAUDE: CSS Custom Properties (Variablen) - Denkmalschutz Design-Tokens */
/* CLAUDE: WCAG 2.1 AA/AAA konforme Farbpalette mit dokumentierten Kontrasten */
:root {
    /* ========================================
       CLAUDE: FARBPALETTE
       ======================================== */

    /* CLAUDE: Grundfläche - Marble White (warmes Off-White) */
    /* CLAUDE: Seitenhintergrund, große Flächen */
    --lhi-color-bg: #F6F4EF;

    /* CLAUDE: Primärtext - Dark Umber */
    /* CLAUDE: Kontrast zu Marble White: 12.47:1 (AAA) */
    --lhi-color-text: #3B2A1A;
    --lhi-color-text-rgb: 59, 42, 26;

    /* CLAUDE: Sekundär - Chestnut */
    /* CLAUDE: Zwischenüberschriften, Meta-Informationen */
    /* CLAUDE: Kontrast zu Marble White: 6.68:1 (AA/AAA) */
    --lhi-color-secondary: #7C4A21;

    /* CLAUDE: Akzent/Brand - Heritage Gold (WCAG AAA korrigiert) */
    /* CLAUDE: CTA-Buttons, Cards-Rahmen, Hover-Zustände */
    /* CLAUDE: Kontrast auf Weiß: 6.02:1 (AAA) */
    /* CLAUDE: Kontrast auf Marble White: 5.50:1 (AA) */
    /* CLAUDE: WICHTIG: Buttons verwenden Weiß statt Dark Umber für Kontrast */
    --lhi-color-gold: #8a6b3f;
    --lhi-color-gold-rgb: 138, 107, 63;

    /* CLAUDE: Heritage Gold Light - Original für dekorative Elemente */
    /* CLAUDE: NUR für große dekorative Texte (24px+) oder Hintergründe */
    --lhi-color-gold-light: #C19A6B;
    --lhi-color-gold-light-rgb: 193, 154, 107;

    /* CLAUDE: CTA/Interaktion - Burgundy */
    /* CLAUDE: Links, aktive Zustände, Marker */
    /* CLAUDE: Kontrast zu Marble White: 7.79:1 (AA/AAA) */
    /* CLAUDE: Weiß auf Burgundy: 8.57:1 (AAA) */
    --lhi-color-accent: #8F2330;

    /* CLAUDE: Feine Linien - Porous Stone */
    /* CLAUDE: 1px Border, Tabellen, Input-Rahmen */
    --lhi-color-border: #DCD7CE;

    /* CLAUDE: Rein Weiß - Cards auf Marble White, Overlays */
    --lhi-color-white: #FFFFFF;

    /* CLAUDE: Footer-Hintergrund - Graphite (warmes Dunkelbraun) */
    --lhi-color-graphite: #594834;

    /* CLAUDE: Status-Farben */
    --lhi-color-success: #2E7D32;
    --lhi-color-success-light: #E9F4EA;
    --lhi-color-warning: #8C6E00;
    --lhi-color-warning-light: #FFF7DF;
    --lhi-color-error: #B00020;
    --lhi-color-error-light: #FDEBEC;

    /* ========================================
       CLAUDE: TYPOGRAFIE
       ======================================== */

    /* CLAUDE: Hauptschrift - Libre Baskerville (Serif) */
    /* CLAUDE: Für Fließtext, Headlines, elegante Darstellung */
    --lhi-font-serif: 'Libre Baskerville', Georgia, serif;

    /* CLAUDE: UI-Schrift - Source Sans Pro (Sans-Serif) */
    /* CLAUDE: Für Navigation, Buttons, Footer, Meta-Informationen */
    --lhi-font-sans: 'Source Sans Pro', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    /* CLAUDE: Standard-Font-Family */
    --lhi-font-family: var(--lhi-font-serif);

    /* CLAUDE: Font-Größen (Fluid Typography) */
    --lhi-font-size-xs: 0.875rem;    /* 14px */
    --lhi-font-size-sm: 0.9rem;      /* 14.4px */
    --lhi-font-size-base: 1rem;      /* 16px */
    --lhi-font-size-lg: 1.125rem;    /* 18px */
    --lhi-font-size-xl: 1.375rem;    /* 22px */
    --lhi-font-size-2xl: 2rem;       /* 32px */
    --lhi-font-size-3xl: 2.5rem;     /* 40px */
    --lhi-font-size-4xl: 3.5rem;     /* 56px */

    /* CLAUDE: Line-Heights */
    --lhi-line-height-tight: 1.2;   /* Headlines */
    --lhi-line-height-snug: 1.4;    /* Subheadlines */
    --lhi-line-height: 1.6;         /* Fließtext */
    --lhi-line-height-relaxed: 1.8; /* Lange Lesetexte */

    /* ========================================
       CLAUDE: SPACING (8px Grid)
       ======================================== */

    --lhi-space-xs: 0.5rem;    /* 8px */
    --lhi-space-sm: 1rem;      /* 16px */
    --lhi-space-md: 1.5rem;    /* 24px */
    --lhi-space-lg: 2.5rem;    /* 40px */
    --lhi-space-xl: 4rem;      /* 64px */
    --lhi-space-2xl: 6rem;     /* 96px */

    /* CLAUDE: Responsive Grid Gutter */
    --lhi-grid-gutter: clamp(1rem, 2vw, 2rem);

    /* ========================================
       CLAUDE: LAYOUT
       ======================================== */

    /* CLAUDE: Content-Breiten */
    --lhi-content-size: 750px;    /* Optimale Lesebreite */
    --lhi-content-wide: 1200px;   /* Wide-Alignment */
    --lhi-content-full: 1440px;   /* Maximale Breite */

    /* CLAUDE: Container-Padding */
    --lhi-container-padding: clamp(1rem, 3vw, 2rem);

    /* ========================================
       CLAUDE: TRANSITIONS
       ======================================== */

    --lhi-transition-fast: 150ms ease;
    --lhi-transition-normal: 250ms ease;
    --lhi-transition-slow: 400ms ease;

    /* ========================================
       CLAUDE: SHADOWS
       ======================================== */

    --lhi-shadow-sm: 0 1px 2px rgba(59, 42, 26, 0.05);
    --lhi-shadow-md: 0 4px 6px rgba(59, 42, 26, 0.1);
    --lhi-shadow-lg: 0 10px 15px rgba(59, 42, 26, 0.1);
    --lhi-shadow-xl: 0 20px 25px rgba(59, 42, 26, 0.15);

    /* ========================================
       CLAUDE: BORDER RADIUS
       ======================================== */

    --lhi-radius-sm: 4px;
    --lhi-radius-md: 8px;
    --lhi-radius-lg: 12px;
    --lhi-radius-xl: 16px;

    /* ========================================
       CLAUDE: BUTTONS
       ======================================== */

    --lhi-btn-padding-y: 0.75rem;
    --lhi-btn-padding-x: 1.5rem;
}

/* ========================================
   CLAUDE: CSS RESET
   ======================================== */

/* CLAUDE: Box-Sizing für alle Elemente */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* CLAUDE: Margins entfernen für konsistente Abstände */
body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote,
dl, dd {
    margin: 0;
}

/* CLAUDE: Listen-Reset */
ul, ol {
    margin: 0;
    padding: 0;
}

/* ========================================
   CLAUDE: HTML & BODY GRUNDSTYLES
   ======================================== */

/* CLAUDE: HTML-Element - verhindert horizontales Scrollen global */
/* CLAUDE: WICHTIG für Mobile-Responsive: overflow-x:hidden */
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    /* CLAUDE: min-height: 100vh - Mindesthöhe für Footer am Seitenende */
    min-height: 100vh;

    /* CLAUDE: Libre Baskerville als Hauptschrift */
    font-family: var(--lhi-font-family);

    /* CLAUDE: 16px Basisgröße */
    font-size: var(--lhi-font-size-base);

    /* CLAUDE: Angenehme Zeilenhöhe für Lesbarkeit */
    line-height: var(--lhi-line-height);

    /* CLAUDE: Dark Umber als Textfarbe */
    color: var(--lhi-color-text);

    /* CLAUDE: Marble White als Hintergrund */
    background-color: var(--lhi-color-bg);

    /* CLAUDE: Font-Smoothing für bessere Darstellung */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* CLAUDE: Verhindert horizontales Scrollen */
    overflow-x: hidden;
}

/* CLAUDE: Body-Lock für Mobile-Menü */
/* CLAUDE: Verhindert Scrollen wenn Mobile-Navigation geöffnet */
html.is-nav-lock,
body.is-nav-lock {
    overflow: hidden;
}

/* ========================================
   CLAUDE: BILDER & MEDIEN
   ======================================== */

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ========================================
   CLAUDE: FORM-ELEMENTE
   ======================================== */

input,
button,
textarea,
select {
    font: inherit;
}

/* ========================================
   CLAUDE: LINKS
   ======================================== */

a {
    /* CLAUDE: Burgundy als Link-Farbe */
    color: var(--lhi-color-accent);
    text-decoration: underline;
    transition: color var(--lhi-transition-fast);
}

a:hover,
a:focus {
    /* CLAUDE: Heritage Gold auf Hover */
    color: var(--lhi-color-gold);
    text-decoration: underline;
}

/* ========================================
   CLAUDE: FOKUS-STYLES (Accessibility)
   ======================================== */

:focus-visible {
    outline: 2px solid var(--lhi-color-gold);
    outline-offset: 2px;
}

/* ========================================
   CLAUDE: HEADINGS
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--lhi-font-serif);
    line-height: var(--lhi-line-height-tight);
    font-weight: 700;
    color: var(--lhi-color-text);
}

h1 {
    font-size: clamp(2rem, 5vw, var(--lhi-font-size-4xl));
}

h2 {
    font-size: clamp(1.75rem, 4vw, var(--lhi-font-size-3xl));
}

h3 {
    font-size: clamp(1.5rem, 3vw, var(--lhi-font-size-2xl));
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, var(--lhi-font-size-xl));
}

h5 {
    font-size: var(--lhi-font-size-lg);
}

h6 {
    font-size: var(--lhi-font-size-base);
}

/* ========================================
   CLAUDE: PARAGRAPHEN
   ======================================== */

p + p {
    margin-top: var(--lhi-space-sm);
}

/* ========================================
   CLAUDE: LISTEN
   ======================================== */

ul:not([class]),
ol:not([class]) {
    padding-left: var(--lhi-space-md);
}

ul:not([class]) li,
ol:not([class]) li {
    margin-bottom: var(--lhi-space-xs);
}

/* ========================================
   CLAUDE: BUTTONS
   ======================================== */

/* CLAUDE: Basis-Button (Heritage Gold) */
.btn,
button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--lhi-btn-padding-y) var(--lhi-btn-padding-x);
    font-family: var(--lhi-font-sans);
    font-size: var(--lhi-font-size-base);
    font-weight: 600;
    line-height: 1;
    /* CLAUDE: WCAG Fix: Weiß statt Dark Umber für besseren Kontrast */
    /* CLAUDE: Kontrast Weiß auf Heritage Gold (#8a6b3f): 7.48:1 (AAA) */
    color: var(--lhi-color-white);
    background-color: var(--lhi-color-gold);
    border: none;
    border-radius: var(--lhi-radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--lhi-transition-fast);
}

.btn:hover,
button[type="submit"]:hover {
    background-color: var(--lhi-color-secondary);
    color: var(--lhi-color-white);
    text-decoration: none;
}

/* CLAUDE: Button Variante - Dark (Dark Umber) */
.btn--dark {
    background-color: var(--lhi-color-text);
    color: var(--lhi-color-white);
}

.btn--dark:hover {
    background-color: var(--lhi-color-secondary);
    color: var(--lhi-color-white);
}

/* CLAUDE: Button Variante - Outline (Transparent mit Border) */
.btn--outline {
    background-color: transparent;
    color: var(--lhi-color-text);
    border: 2px solid var(--lhi-color-text);
}

.btn--outline:hover {
    background-color: var(--lhi-color-text);
    color: var(--lhi-color-white);
}

/* CLAUDE: Button Variante - Accent (Burgundy) */
.btn--accent {
    background-color: var(--lhi-color-accent);
    color: var(--lhi-color-white);
}

.btn--accent:hover {
    background-color: #6d1a25; /* Dunkleres Burgundy */
    color: var(--lhi-color-white);
}

/* CLAUDE: Button Variante - Full-Width */
.btn--block {
    display: flex;
    width: 100%;
}

/* CLAUDE: Button Variante - Small */
.btn--sm {
    padding: 0.5rem 1rem;
    font-size: var(--lhi-font-size-sm);
}

/* CLAUDE: Button Variante - Large */
.btn--lg {
    padding: 1rem 2rem;
    font-size: var(--lhi-font-size-lg);
}

/* ========================================
   CLAUDE: SCREEN READER ONLY
   ======================================== */

.screen-reader-text,
.sr-only {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus,
.sr-only:focus {
    clip: auto !important;
    display: block;
    height: auto;
    width: auto;
    z-index: 100000;
    background-color: var(--lhi-color-white);
    padding: var(--lhi-space-sm);
}

/* ========================================
   CLAUDE: HELPER-KLASSEN
   ======================================== */

/* CLAUDE: Text-Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* CLAUDE: Font-Weights */
.font-normal { font-weight: 400; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* CLAUDE: Font-Styles */
.font-italic { font-style: italic; }

/* CLAUDE: Font-Families */
.font-serif { font-family: var(--lhi-font-serif); }
.font-sans { font-family: var(--lhi-font-sans); }

/* CLAUDE: Farben */
.text-gold { color: var(--lhi-color-gold); }
.text-accent { color: var(--lhi-color-accent); }
.text-secondary { color: var(--lhi-color-secondary); }
.text-white { color: var(--lhi-color-white); }

/* CLAUDE: Hintergrund-Farben */
.bg-marble { background-color: var(--lhi-color-bg); }
.bg-white { background-color: var(--lhi-color-white); }
.bg-graphite { background-color: var(--lhi-color-graphite); }
.bg-gold { background-color: var(--lhi-color-gold); }

/* CLAUDE: Hover-Animation */
.hvr-grow {
    transition: transform var(--lhi-transition-fast);
}

.hvr-grow:hover {
    transform: scale(1.02);
}

/* ========================================
   CLAUDE: WORDPRESS/GUTENBERG FARB-OVERRIDES
   WCAG 2.1 AA konforme Farben erzwingen
   ======================================== */

/* CLAUDE: Heritage Gold - WCAG AA Fix */
/* CLAUDE: WordPress generiert has-heritage-gold-* Klassen aus theme.json */
/* CLAUDE: Diese Overrides stellen korrekten Kontrast sicher */
.has-heritage-gold-color {
    color: var(--lhi-color-gold) !important;
}

.has-heritage-gold-background-color {
    background-color: var(--lhi-color-gold) !important;
}

/* CLAUDE: Heritage Gold Light - nur für dekorative Elemente */
.has-heritage-gold-light-color {
    color: var(--lhi-color-gold-light);
}

.has-heritage-gold-light-background-color {
    background-color: var(--lhi-color-gold-light);
}

/* CLAUDE: Spezifische Fixes für bekannte Kontrastprobleme */
/* CLAUDE: USP-Headlines (STARK, FOKUSSIERT, ZIELSTREBIG) auf Weiß */
/* CLAUDE: Diese benötigen mindestens 3:1 Kontrast (große Texte) */
.has-white-background-color .has-heritage-gold-color,
.has-marble-white-background-color .has-heritage-gold-color {
    color: var(--lhi-color-gold) !important;
}

/* CLAUDE: Buttons mit Gold-Hintergrund - Text muss kontrastreich sein */
/* CLAUDE: Weiß auf Heritage Gold (#8a6b3f): 7.48:1 (AAA) */
.wp-block-button__link.has-heritage-gold-background-color {
    background-color: var(--lhi-color-gold) !important;
    color: var(--lhi-color-white) !important;
}

/* CLAUDE: Testimonial-Sektion - Gold auf Dark Umber */
/* CLAUDE: Marble White auf Dark Umber: 12.47:1 (AAA) - besser als Gold */
.has-dark-umber-background-color .has-heritage-gold-color {
    color: var(--lhi-color-bg) !important;
}

/* CLAUDE: WCAG Fix: Contact-CTA-Sektion mit Gold-Hintergrund */
/* CLAUDE: Texte müssen Weiß sein für ausreichenden Kontrast */
/* CLAUDE: Kontrast Weiß auf Heritage Gold (#8a6b3f): 7.48:1 (AAA) */
.has-heritage-gold-background-color .has-dark-umber-color,
.has-heritage-gold-background-color h1,
.has-heritage-gold-background-color h2,
.has-heritage-gold-background-color h3,
.has-heritage-gold-background-color p,
.has-heritage-gold-background-color a {
    color: var(--lhi-color-white) !important;
}

/* CLAUDE: Team-Namen - Heritage Gold auf Marble White */
/* CLAUDE: Chestnut (#7C4A21) hat besseren Kontrast: 6.68:1 */
.has-marble-white-background-color .has-heritage-gold-color {
    color: var(--lhi-color-secondary) !important;
}
