/*
Theme Name:  IT-NETRA
Theme URI:   https://it-netra.de
Author:      IT-NETRA
Author URI:  https://it-netra.de
Description: Minimales Corporate Theme für IT-NETRA – IT-Lösungen & Schulungen
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: it-netra
*/

/* ============================================================
   CSS VARIABLEN
   ============================================================ */
:root {
    --bg-dark:    #2e3141;
    --bg-darker:  #1f212a;
    --accent:     #4696e5;
    --text-main:  #ffffff;
    --text-dim:   rgba(255, 255, 255, 0.6);
    --font-stack: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--text-main);
}

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

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--bg-darker);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.site-nav .logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-main);
    text-decoration: none;
}

.site-nav .logo span {
    color: var(--accent);
}

/* WordPress-generiertes Menü */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0;
}

.main-navigation ul li a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
    color: var(--accent);
}

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s;
}

/* ============================================================
   HERO SECTION (nur Front-Page)
   ============================================================ */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 10%;
    background: linear-gradient(135deg, #2e3141 0%, #1f212a 100%);
    border-bottom: 10px solid var(--accent);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.hero p {
    max-width: 600px;
    color: var(--text-dim);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid var(--text-main);
    background: transparent;
    color: var(--text-main);
    text-transform: uppercase;
    font-weight: bold;
    font-family: var(--font-stack);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    letter-spacing: 1px;
}

.btn:hover {
    background: var(--text-main);
    color: var(--bg-darker);
}

.btn-accent {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent);
    color: #fff;
}

/* ============================================================
   SECTIONS ALLGEMEIN
   ============================================================ */
section {
    padding: 5rem 10%;
}

.section-bg-dark {
    background: linear-gradient( to bottom, #2e3141 0%, #2e3141 40%, #363b52 100% );
}

.section-bg-darker {
    background: linear-gradient( to bottom, #1f212a 0%, #1f212a 40%, #2b2f40 100% );
}

.hero {
    background: linear-gradient(135deg, #2e3141 0%, #1f212a 100%) !important;
}

.training,
.news-preview {
    /* background kommt von .section-bg-darker */
}

.section-title {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::before {
    content: "";
    display: block;
    width: 50px;
    height: 4px;
    background: var(--accent);
    margin-bottom: 1rem;
}

/* Optionaler Einleitungstext unter der Section-Überschrift */
.section-intro {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 680px;
    margin-top: -1.5rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Section-Bild (optional, über dem Inhalt der Section) */
.section-image {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 2.5rem;
    line-height: 0;
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 4px;
    transition: transform 0.3s, background 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

/* ============================================================
   TRAINING SECTION
   ============================================================ */
.training {
    /* background kommt von .section-bg-darker */
    /* padding kommt von section-Base */
}

.training ul {
    list-style: none;
    margin-bottom: 2rem;
}

.training ul li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

/* ============================================================
   KONTAKTFORMULAR
   ============================================================ */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #3b3e4f;
    border: 1px solid transparent;
    border-radius: 2px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-submit {
    width: 100%;
    background: var(--accent);
    border: none;
    border-radius: 2px;
    color: white;
    padding: 1rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.btn-submit:hover {
    opacity: 0.85;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    padding: 4rem 1rem;
    background: #191b22;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.footer-nav {
    margin-top: 1rem;
}

/* WordPress footer-Menü */
.footer-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.footer-navigation ul li a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 1rem;
    transition: opacity 0.3s;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.footer-navigation ul li a:hover {
    opacity: 0.7;
    border-bottom: 1px solid var(--accent);
}

/* ============================================================
   INNER PAGE (Impressum / Datenschutz / AGB)
   ============================================================ */
.page-hero {
    padding: 6rem 10% 3rem;
    background: linear-gradient(135deg, #2e3141 0%, #1f212a 100%);
    border-bottom: 4px solid var(--accent);
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.page-content {
    padding: 4rem 10%;
    max-width: 900px;
}

.page-content h2 {
    font-size: 1.4rem;
    color: var(--accent);
    margin: 2rem 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-content h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-main);
}

.page-content p,
.page-content li {
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    max-width: 70ch;
}

.page-content ul,
.page-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.page-content a {
    color: var(--accent);
    text-decoration: underline;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   NEWS / BLOG-VORSCHAU KARTEN
   ============================================================ */
.news-preview {
    /* background kommt von .section-bg-darker, padding von section-Base */
}

/* Bild oben in der Karte */
.news-card {
    display: flex;
    flex-direction: column;
    padding: 0;               /* Kein Padding mehr außen, Body bekommt es */
    overflow: hidden;
}

.news-card__thumb {
    display: block;
    line-height: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.news-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card__thumb img {
    transform: scale(1.04);
}

/* Karten-Inhalt */
.news-card__body {
    padding: 1.75rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Kategorie-Badge */
.news-card__cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 0.6rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.news-card__cat:hover {
    opacity: 0.7;
    color: var(--accent);
}

/* Titel */
.news-card__title {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    line-height: 1.4;
    color: var(--text-main);
}

.news-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.news-card__title a:hover {
    color: var(--accent);
}

/* Datum */
.news-card__date {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.8rem;
}

/* Teaser */
.news-card__excerpt {
    font-size: 0.92rem;
    color: var(--text-dim);
    margin-bottom: 1.2rem;
    flex: 1;                /* nimmt verfügbaren Platz ein → Link bleibt unten */
}

/* Weiterlesen-Link */
.news-card__link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.2s;
    margin-top: auto;
}

.news-card__link:hover {
    opacity: 0.7;
    color: var(--accent);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .site-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .main-navigation {
        width: 100%;
        display: none;
    }

    .main-navigation.is-open {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }

    .main-navigation ul li a {
        margin-left: 0;
        display: block;
        padding: 0.5rem 0;
    }

    section {
        padding: 4rem 6%;
    }

    .training {
        padding: 4rem 6%;
    }

    .page-content {
        padding: 3rem 6%;
    }
}

/* ============================================================
   SECTION-WAVE  – eigenständiges Element ZWISCHEN zwei Sections
   ============================================================

   Struktur im HTML:
     <section class="section-bg-darker"> … </section>
     <div class="section-wave wave-bg-darker"> SVG fill=#2e3141 </div>
     <section class="section-bg-dark"> … </section>

   wave-bg-*  = Hintergrundfarbe des Wellendivs = Farbe der Section DARÜBER.
   SVG fill   = Farbe der Section DARUNTER.
   top: -1px  = vermeidet 1-Pixel-Spalt durch Sub-Pixel-Rendering.
   ============================================================ */
.section-wave {
    position: relative;
    top: -1px;
    width: 100%;
    height: 120px;
    overflow: hidden;
    pointer-events: none;
    margin: 0;
    padding: 0;
    line-height: 0;
    font-size: 0;
    display: block;
}

/* Hintergrundfarbe des Wellendivs = Farbe der Section darüber */
.wave-bg-dark   { background-color: #2e3141; }
.wave-bg-darker { background-color: #1f212a; }

/* Nachfolgende Section 1px hochziehen → kein Spalt */
.section-wave + section,
.section-wave + footer {
    margin-top: -1px;
}

.section-wave svg {
    display: block;
    width: 200%;
    height: 110px;
}

/* Section-Inhalte brauchen kein z-index mehr */
section > *:not(.section-wave) { position: static; }

/* ============================================================
   WELLEN-ANIMATION
   ============================================================ */
.wave-path-a {
    animation: waveMove 10s ease-in-out infinite;
    filter: drop-shadow(0 -4px 7px rgba(70, 150, 229, 0.45));
}

.wave-path-b {
    opacity: 0.45;
    animation: waveMove 7s ease-in-out infinite reverse;
    filter: drop-shadow(0 -2px 5px rgba(70, 150, 229, 0.25));
}

@keyframes waveMove {
    0%   { transform: translateX(0)     scaleY(1);    }
    25%  { transform: translateX(-8%)   scaleY(1.05); }
    50%  { transform: translateX(-25%)  scaleY(0.95); }
    75%  { transform: translateX(-17%)  scaleY(1.03); }
    100% { transform: translateX(0)     scaleY(1);    }
}

@media (max-width: 600px) {
    .section-wave { height: 75px; }
    .section-wave svg { height: 65px; }
    section { padding: 3rem 6%; }
}

