/*
Theme Name: Halloween Monster
Theme URI: https://halloweenmonster.de
Author: Haus Nr. 13
Description: Düsteres, klassisches PHP-Theme für die private Halloween-Seite "Halloween Monster". Enthält eine Startseite mit Kacheln zu Unterseiten sowie eine einheitliche Unterseiten-Vorlage.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: halloween-monster
*/

/* -------------------------------------------------
   Fonts (aus Google Fonts, lokal per functions.php eingebunden)
------------------------------------------------- */

/* -------------------------------------------------
   Grundlagen
------------------------------------------------- */
:root {
    --hm-bg: #0a0a0a;
    --hm-bg-panel: #111111;
    --hm-border: #3a3a2a;
    /* --hm-green: #8fce46; */
    --hm-green-dark: #5c8a2e;
    --hm-orange: #e07b39;
    --hm-text: #d8d8d0;
    --hm-text-dim: #9a9a90;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--hm-bg);
    background-image:
        radial-gradient(ellipse at top, rgba(90, 120, 60, 0.08), transparent 60%),
        radial-gradient(ellipse at bottom, rgba(150, 60, 20, 0.06), transparent 60%);
    color: var(--hm-text-dim);
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Creepster', cursive;
    letter-spacing: 1px;
    color: var(--hm-green-dark);
    text-shadow: 0 0 8px rgba(143, 206, 70, 0.35);
    margin: 0 0 0.4em;
}

a {
    color: var(--hm-orange);
    text-decoration: none;
}

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

.hm-container {
    /* max-width: 1100px; */
    margin: 0 auto;
    padding: 0 24px;
}

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

/* -------------------------------------------------
   Header / Navigation
------------------------------------------------- */
.hm-header {
    background: #000;
    border-bottom: 1px solid var(--hm-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.hm-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    /* max-width: 1100px; */
    margin: 0 auto;
    flex-wrap: wrap;
}

.hm-site-title {
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    color: var(--hm-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
}

.hm-site-title a {
    color: var(--hm-orange);
}

.hm-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.hm-nav a {
    color: var(--hm-text);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.hm-nav li.current-menu-item > a,
.hm-nav a:hover {
    color: var(--hm-green-dark);
}

.hm-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--hm-border);
    color: var(--hm-text);
    font-size: 1.2rem;
    padding: 6px 10px;
    cursor: pointer;
}

@media (max-width: 780px) {
    .hm-menu-toggle {
        display: block;
    }
    .hm-nav {
        display: none;
        width: 100%;
        order: 3;
    }
    .hm-nav.is-open {
        display: block;
    }
    .hm-nav ul {
        flex-direction: column;
        gap: 12px;
        padding: 16px 0;
    }
}

/* -------------------------------------------------
   Header-Grafik
------------------------------------------------- */
.hm-header-image {
    width: 100%;
    margin: 0 auto;
}

.hm-header-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* -------------------------------------------------
   Hero Image (Startseite)
------------------------------------------------- */
.hero-image-wrap {
    position: relative;
    max-width: 100%;
}
.hero-image {
    display: block;
    width: 100%;
    height: auto;
}
.hotspot {
    position: absolute;
    display: block;
    /* zum Debuggen sichtbar machen: */
    /* background: rgba(255,0,0,0.3); */
}

/* -------------------------------------------------
   Hero (Startseite)
------------------------------------------------- */
.hm-hero {
    position: relative;
    padding: 90px 24px 70px;
    text-align: center;
    background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
    border-bottom: 1px solid var(--hm-border);
    overflow: hidden;
    /* max-width: 1100px; */
    margin: 0 auto;
}

.hm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(180,180,255,0.05), transparent 40%);
    pointer-events: none;
}

.hm-hero-house-number {
    color: var(--hm-green-dark);
    font-family: 'Creepster', cursive;
    font-size: 2rem;
    text-shadow: 0 0 12px rgba(143,206,70,0.5);
}

.hm-hero-title {
    font-size: clamp(2.4rem, 7vw, 4.5rem);
    margin: 10px 0 0;
    line-height: 1.1;
}

.hm-hero-subtitle-word {
    display: block;
    color: #cfcfcf;
    font-family: 'Creepster', cursive;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    text-shadow: none;
    -webkit-text-stroke: 1px #444;
}

.hm-hero-tagline {
    margin-top: 22px;
    display: inline-block;
    border-top: 1px solid var(--hm-border);
    border-bottom: 1px solid var(--hm-border);
    padding: 10px 26px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--hm-text-dim);
}

.hm-hero-tagline strong {
    color: var(--hm-orange);
}

/* Kleinerer Hero für Unterseiten */
.hm-hero-page {
    padding: 60px 24px;
}

.hm-hero-page .hm-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
}

/* -------------------------------------------------
   Zitat-Box
------------------------------------------------- */
.hm-quote {
    /* max-width: 1100px; */
    margin: 40px auto;
    padding: 46px 90px;
    border: none;
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    font-style: normal;
    font-size: 1.35rem;
    line-height: 1.4;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.9);
}

.hm-quote mark {
    background: none;
    color: var(--hm-orange);
    font-weight: bold;
    font-size: 1.05em;
}

/* -------------------------------------------------
   Kacheln (Startseite)
------------------------------------------------- */
.hm-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    padding: 20px 24px 60px;
    /* max-width: 1100px; */
    margin: 0 auto;
}

.hm-tile {
    background-color: var(--hm-bg-panel);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--hm-border);
    padding: 28px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.hm-tile h2 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.hm-tile .hm-tile-sub {
    color: var(--hm-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.hm-tile p {
    color: var(--hm-text-dim);
    flex-grow: 1;
}

/* -------------------------------------------------
   Buttons
------------------------------------------------- */
.hm-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--hm-green-dark);
    color: #0a0a0a;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    border: 1px solid var(--hm-green-dark);
}

.hm-btn:hover {
    background: var(--hm-green-dark);
    color: #000;
}

/* -------------------------------------------------
   Sektion "Tipps & Ideen" / generische Sektion
------------------------------------------------- */
.hm-section {
    padding: 50px 24px;
    text-align: center;
    border-top: 1px solid var(--hm-border);
    border-bottom: 1px solid var(--hm-border);
    /* max-width: 1100px; */
    margin: 0 auto;
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
}

.hm-section p {
    /* max-width: 1100px; */
    margin: 0 auto 10px;
    color: var(--hm-text-dim);
}

.hm-section--flush {
    padding-left: 0;
    padding-right: 0;
}

/* -------------------------------------------------
   Standard Content (Unterseiten)
------------------------------------------------- */
.hm-content {
    padding: 10px 24px 10px;
    margin: 0 auto;
}

.hm-content h2, .hm-content h3 {
    color: var(--hm-green-dark);
}

.hm-content a {
    text-decoration: underline;
}

/* -------------------------------------------------
   Footer
------------------------------------------------- */
.hm-footer {
    background: #000;
    border-top: 1px solid var(--hm-border);
    padding: 34px 24px 26px;
    text-align: center;
    color: var(--hm-text-dim);
    font-size: 0.85rem;
}

.hm-footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 0 0 14px;
    padding: 0;
    flex-wrap: wrap;
}

.hm-footer-links a {
    color: var(--hm-text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.78rem;
}

.hm-footer-links a:hover {
    color: var(--hm-orange);
}

.hm-footer-copy {
    color: #6a6a62;
    font-size: 0.78rem;
    margin: 0;
}

.hm-footer-copy .hm-house {
    color: var(--hm-orange);
}

/* -------------------------------------------------
   Rechtliche Seiten (Impressum, Datenschutz)
   Bewusst ruhiger gehalten als der Rest des Themes:
   gut lesbar statt "gruselig", aber mit denselben
   Farb-Variablen wie das übrige Theme.
   Anwendung: Inhalt der Seite in
   <div class="hm-legal"> ... </div> einpacken.
------------------------------------------------- */
.hm-legal {
    margin: 0 auto;
}

.hm-legal section {
    margin: 0 0 2rem;
}

.hm-legal section:last-child {
    margin-bottom: 0;
}

.hm-legal h2 {
    margin: 0 0 .55rem;
    color: var(--hm-orange);
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    text-shadow: none;
    letter-spacing: 0.5px;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    line-height: 1.25;
    font-weight: bold;
}

.hm-legal p {
    margin: 0;
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    color: var(--hm-text);
    line-height: 1.6;
}

.hm-legal a {
    color: var(--hm-text);
    text-decoration: underline;
    text-decoration-thickness: .08em;
    text-underline-offset: .16em;
}

.hm-legal a:hover {
    color: var(--hm-orange);
}

.hm-legal a:focus-visible {
    outline: 3px solid var(--hm-orange);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .hm-legal section {
        margin-bottom: 1.6rem;
    }
    .hm-legal p {
        line-height: 1.52;
    }
}
