/*
Theme Name: Meeresschnitt
Theme URI: https://meeresschnitt.at
Author: Daniel Kainz
Author URI: https://meeresschnitt.at
Description: Custom theme for Meeresschnitt – Underwater Content House. Security hardened (CSP nonce, proxy-aware login lockout, ABSPATH guards) & SEO optimized. v2 = post-security-audit release.
Version: 2.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: meeresschnitt
Tags: full-width-template, custom-menu, featured-images, footer-widgets, translation-ready
*/

/* ============================================================
   CLASH DISPLAY – Heading Font (self-hosted, DSGVO-konform)
   Download: https://www.fontshare.com/fonts/clash-display
   → "Download Family" → alle .woff2 Dateien nach assets/fonts/ kopieren
   Dateinamen: ClashDisplay-Variable.woff2 (empfohlen)
   oder einzeln: ClashDisplay-Regular/Medium/Semibold/Bold/Extralight/Light.woff2
   ============================================================ */

/* Variable Font – ein einziges File deckt alle Gewichte ab */
@font-face {
    font-family: 'ClashDisplay';
    src: url('assets/fonts/ClashDisplay-Variable.woff2') format('woff2-variations');
    font-weight: 200 700;
    font-style: normal;
    font-display: swap;
}

/* Statische Fallback-Gewichte (falls Variable Font nicht vorhanden) */
@font-face {
    font-family: 'ClashDisplay';
    src: url('assets/fonts/ClashDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ClashDisplay';
    src: url('assets/fonts/ClashDisplay-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ClashDisplay';
    src: url('assets/fonts/ClashDisplay-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ClashDisplay';
    src: url('assets/fonts/ClashDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   INTER – Body Font (self-hosted, DSGVO-konform)
   Download: https://github.com/rsms/inter/releases
   → InterVariable.woff2 nach assets/fonts/ kopieren
   ============================================================ */
@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/InterVariable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Brand – Primary */
    --color-blue: #00506c;
    --color-blue-dark: #003d53;
    --color-blue-light: #1a6d8e;
    --color-blue-pale: #ddeef5;
    --color-blue-tint: #f0f8fb;

    /* Brand – Secondary / Accent */
    --color-accent: #ec5e3d;
    --color-accent-dark: #c94d30;
    --color-accent-light: #f07d61;
    --color-accent-pale: #fdf0ed;

    /* Light Theme Palette */
    --color-white: #FFFFFF;
    --color-bg: #FFFFFF;
    --color-bg-alt: #f5f9fb;
    --color-bg-card: #FFFFFF;
    --color-bg-dark-section: #001f2e;
    --color-text: #111827;
    --color-text-light: #374151;
    --color-text-muted: #6b7280;
    --color-border: #d1e4ec;
    --color-border-light: #e0eff5;

    /* Fonts */
    /* ClashDisplay: Headings, Nav, Labels, Buttons */
    --font-heading: 'ClashDisplay', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* Inter: Fließtext, Beschreibungen, Meta */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --max-width: 1200px;
    --section-padding: 100px 0;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--color-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-blue-dark);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;       /* ClashDisplay Semibold – Halbfett */
    line-height: 1.15;
    letter-spacing: 0em;
    color: var(--color-text);
}

h1 { font-weight: 600; letter-spacing: -0.01em; }
h2 { font-weight: 600; letter-spacing: -0.005em; }
h3 { font-weight: 600; letter-spacing: 0em; }
h4 { font-weight: 600; letter-spacing: 0.01em; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-blue);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-text);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 600px;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--color-blue);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-blue-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 80, 108, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-blue);
    border: 2px solid var(--color-blue);
}

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

/* Accent / CTA Button – Coral */
.btn-accent {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn-accent:hover {
    background: var(--color-accent-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(236, 94, 61, 0.35);
}
