/* =============================================================
   hape42.de – main page styling
   Farbpalette aus DG übernommen (Marineblau, Hellblau, Orange),
   eigener Charakter durch großzügige Whitespaces und
   Display-Schrift "Fraunces" für Headlines.
   ============================================================= */

/* -------------------------------------------------------------
   Webfonts - lokal gehostet aus Datenschutz-Gründen
   (keine Verbindung zu fonts.googleapis.com).
   Lizenzen liegen unter fonts/Inter-LICENSE.txt
                    bzw. fonts/Fraunces-LICENSE.txt
   ------------------------------------------------------------- */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url('fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url('fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url('fonts/inter-latin-700-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('fonts/fraunces-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url('fonts/fraunces-latin-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url('fonts/fraunces-latin-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url('fonts/fraunces-latin-700-normal.woff2') format('woff2');
}

:root {
    --c-navy:        #1a3a5c;   /* DG-Hauptfarbe */
    --c-navy-light:  #234e7a;   /* Hover-Zustand */
    --c-blue:        #4a90e2;   /* Akzent */
    --c-orange:      #f5a623;   /* zweiter Akzent */
    --c-text:        #1a1a1a;
    --c-text-soft:   #555;
    --c-bg:          #ffffff;
    --c-bg-alt:      #f5f1ea;   /* warmer, nicht das übliche kaltgraue */
    --c-border:      #e0d8cc;

    --font-display:  'Fraunces', Georgia, serif;
    --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --max-w:         900px;
    --section-pad-y: 5rem;
}

/* -------------------------------------------------------------
   Reset / Basics
   ------------------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--c-navy);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--c-orange);
}

h1, h2 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--c-navy);
    margin: 0;
}

/* -------------------------------------------------------------
   Top Navigation
   ------------------------------------------------------------- */

.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-border);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--c-navy);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-42 {
    color: var(--c-orange);
}

.nav-links {
    display: flex;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.95rem;
    color: var(--c-text-soft);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--c-navy);
}

/* -------------------------------------------------------------
   Hero
   ------------------------------------------------------------- */

.hero {
    padding: 4rem 1.5rem 5rem;
    background: linear-gradient(180deg, #fbfaf6 0%, var(--c-bg) 100%);
    border-bottom: 1px solid var(--c-border);
}

.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-cube,
.hero-ball {
    display: flex;
    justify-content: center;
}

.hero-cube img,
.hero-ball img {
    max-width: 100%;
    height: auto;
}

.hero-text {
    text-align: center;
    padding: 0 1rem;
}

.hero-text h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.accent42 {
    color: var(--c-orange);
}

.tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--c-text-soft);
    margin: 0;
    font-weight: 400;
}

/* Mobil: Text oben, dann Cube + Ball nebeneinander */
@media (max-width: 720px) {
    .hero {
        padding: 2.5rem 1rem 3rem;
    }
    .hero-inner {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
          "text text"
          "cube ball";
        gap: 2rem 1rem;
    }
    .hero-text {
        grid-area: text;
        padding: 0;
    }
    .hero-cube {
        grid-area: cube;
        justify-self: end;
    }
    .hero-ball {
        grid-area: ball;
        justify-self: start;
    }
    .hero-cube img,
    .hero-ball img {
        max-width: 140px;
    }
}

/* -------------------------------------------------------------
   Content Sections
   ------------------------------------------------------------- */

.content-section {
    padding: var(--section-pad-y) 1.5rem;
    border-bottom: 1px solid var(--c-border);
}

.content-section.alt-bg {
    background: var(--c-bg-alt);
}

.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.content-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.015em;
}

.content-section h2::after {
    content: "";
    display: block;
    width: 3rem;
    height: 3px;
    background: var(--c-orange);
    margin-top: 0.6rem;
}

.content-section h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--c-navy);
    margin: 2rem 0 0.6rem;
    letter-spacing: -0.005em;
}

.content-section h3:first-of-type {
    margin-top: 1.5rem;
}

.muted-note {
    color: var(--c-text-soft);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 2.5rem !important;
}

.prose ul {
    max-width: 65ch;
    margin: 0 0 1.1rem;
    padding-left: 1.5rem;
}

.prose ul li {
    margin-bottom: 0.3rem;
}

.prose p {
    margin: 0 0 1.1rem;
    max-width: 65ch;
}

.prose p:last-child {
    margin-bottom: 0;
}

.cta-line {
    margin-top: 2rem !important;
}

.cta-link {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--c-orange);
    padding-bottom: 2px;
    color: var(--c-navy);
    transition: all 0.2s ease;
}

.cta-link:hover {
    color: var(--c-orange);
    border-bottom-color: var(--c-navy);
}

/* -------------------------------------------------------------
   Find Me list
   ------------------------------------------------------------- */

.find-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    max-width: 28rem;
}

.find-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--c-border);
    align-items: baseline;
}

.find-list li:last-child {
    border-bottom: none;
}

.find-where {
    font-weight: 500;
    color: var(--c-text-soft);
}

.find-handle {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--c-navy);
    font-size: 1.05rem;
}

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */

.site-footer {
    padding: 2.5rem 1.5rem;
    background: var(--c-navy);
    color: #d8dce5;
    font-size: 0.9rem;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.footer-inner p { margin: 0; }

.site-footer a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer a:hover {
    color: var(--c-orange);
}

.muted {
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
}

/* -------------------------------------------------------------
   Print: nicht prioritär, aber lesbar
   ------------------------------------------------------------- */

@media print {
    .top-nav, .site-footer { display: none; }
    .content-section { page-break-inside: avoid; }
    body { font-size: 11pt; }
}
