/*
Theme Name: Design LK
Theme URI: http://example.com
Author: Dein Name
Author URI: http://example.com
Description: Ein super-einfaches Lern-Theme mit Header, Main und Footer.
Version: 1.0
License: GNU General Public License v2 or later
Tags: simple, learning
Text Domain: simple-template
*/

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.4;
  color: #222;
}

.site-header, .site-footer {
  background: #f2f2f2;
  padding: 20px;
  text-align: center;
}

.site-main {
  padding: 30px;
  max-width: 900px;
  margin: 0 auto;
}

/* Headlines */
h1, h2, h3, .headline {
  font-family: 'Caveat', cursive;
  font-weight: 400;
}

/* Grid-Layout für Posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.post-item {
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.post-item h2 {
    font-family: 'Caveat', cursive;
    margin-top: 0;
}

.post-item p {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

/* --- Stufe 6: Menü Styles --- */
.main-nav {
  text-align: left;
}

.main-nav .menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 20px;
}

.main-nav .menu,
.main-nav .menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav .menu {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
}

.main-nav .menu li {
  position: relative;
}

.main-nav .menu li a {
  display: block;
  padding: 5px 10px;
  text-decoration: none;
  color: #222;
}

/* Dropdown-Menü für Unterkategorien */
.main-nav .menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #f2f2f2;
  padding: 0;
  min-width: 150px;
  z-index: 1000;
  border: 1px solid #ddd;
}

.main-nav .menu li:hover > ul {
  display: block;
}

.main-nav .menu li ul li a {
  padding: 5px 15px;
  color: #222;
  white-space: nowrap;
}

/* Mobile */
.menu-toggle {
  display: none;
  background: #222;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 18px;
}

@media (max-width: 768px) {
  .main-nav .menu {
    display: none;
    flex-direction: column;
    gap: 0;
  }

  .main-nav .menu li ul {
    position: static;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav .menu.show {
    display: flex;
  }
}
/* ===============================
   Kachel Design angepasst
   =============================== */
.tile {
    background: linear-gradient(to bottom, rgba(255, 235, 59, 0), rgba(255, 235, 59, 0.3), rgba(255, 235, 59, 0)); /* gelber Verlauf transparent oben/unten */
    border-radius: 12px;  /* Gesamt abgerundet */
    overflow: hidden;
    text-align: center;   /* Alles mittig */
    transition: transform 0.25s ease-in-out;
    box-shadow: none;     /* Kein Schatten */
}

.tile:hover {
    transform: translateY(-2px); /* leichtes Hovern */
}

/* Bild in der Kachel */
.tile-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 12px; /* unten abrunden */
    border-bottom-right-radius: 12px; /* unten abrunden */
}

/* Kategorie-Name mittig unter dem Bild */
.tile-category {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #222;
    margin: 15px 0; /* Abstand zum Bild */
    text-align: center;
}
/* ===============================
   Kachel Design
   =============================== */
.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.tile {
    border-radius: 12px;       /* Kachel insgesamt abgerundet */
    overflow: hidden;           /* Inhalt nicht über Kachel hinaus */
    text-align: center;         /* Alles mittig */
    transition: transform 0.25s ease-in-out;
    background: linear-gradient(
        to bottom,
        rgba(255, 235, 59, 0), 
        rgba(255, 235, 59, 0.3), 
        rgba(255, 235, 59, 0)
    ); /* gelber Verlauf */
    box-shadow: none;           /* Kein Schatten */
}

.tile:hover {
    transform: translateY(-2px);
}

/* Bild innerhalb der Kachel */
.tile-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 12px; /* Abrundung auch unten */
}

/* Kategorie-Name mittig unter dem Bild */
.tile-category {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #222;
    margin: 12px 0;
    text-align: center;
}

/* Titel der Kachel optional kleiner darunter */
.tile-title {
    font-size: 1.4rem;
    font-family: 'Caveat', cursive;
    color: #222;
    margin-bottom: 12px;
    text-align: center;
}

/* Titel der Kachel optional kleiner darunter */
.tile-title {
    font-size: 1.4rem;
    font-family: 'Caveat', cursive;
    color: #222;
    margin-bottom: 15px;
}

/* Kategorie-Grid */
.category-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin: 40px 0;
}

.category-tile {
    display: block;
    background: #f7f7f7;
    padding: 30px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: 0.2s ease-in-out;
    text-align: center;
}

.category-tile:hover {
    background: #eaeaea;
    transform: translateY(-4px);
}

/* Kategorie-Kachel Grid auf Startseite */
.category-tiles {
    margin-top: 50px;
    padding: 20px;
}

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.tile {
    background: #f7f7f7;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-align: left;
}

.tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.15);
}

.tile a {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.tile-content {
    padding: 18px;
}

.tile-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #777;
    margin-bottom: 8px;
    
}

.tile-title {
    font-size: 20px;
    line-height: 1.3;
    margin: 5px;
    font-family: 'Caveat', cursive;
    color: #222;
}
/* Header transparent über Hero */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: transparent;
    z-index: 10;
}

/* Logo links, Navigation rechts */
.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
}

/* Hero Section Vollbild */
.hero-section {
    height: 100vh;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: left;
    position: relative;
    padding-left: 50px;
    padding-right: 50px;
    color: #000;
}

/* Hero Text linksbündig */

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 600px;

    /* GOLDENER SCHNITT: ca. 35% vom linken Rand */
    position: absolute;
    left: 35%;
    top: 50%;          /* vertikal zentriert */
    transform: translate(-35%, -50%); /* feinjustierung: horizontal & vertikal */
}

.hero-section h1 {
    font-family: 'Caveat', cursive;
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-align: left;
    color: #10566D;
   
}

.hero-button {
    margin-top: 20px;
    padding: 15px 50px;
    border: 2px solid #000; 
    background-color: transparent; 
    color: #000;                 
    text-decoration: none;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    box-shadow: none
    transition: all 0.3s ease;
}

/* Hover-Effekt */
.hero-button:hover {
    background-color: #10566D; /* blauer Hintergrund beim Hover */
    color: #fff;            /* Text dann weiß */
    transform: translateY(-2px);
}

/* Kategorie-Kacheln nach Hero */
.site-main {
    padding: 50px 30px 30px 30px;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
    .site-header {
        padding: 15px 20px;
    }
    .hero-section {
        padding-left: 20px;
        padding-right: 20px;
    }
}
/* ===========================
   Startseiten Hero Section
   =========================== */
.hero-section {
    height: 100vh;
    background-size: cover;
    background-position: center center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    color: #000;
    padding: 0 20px;
}

.hero-section h1 {
    font-family: 'Caveat', cursive;
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    /*text-shadow: 2px 2px 10px rgba(0,0,0,0.5);*/
}



.header-left {
    position: absolute;
    top: 20px;
    left: 20px;
}

.header-right {
    position: absolute;
    top: 20px;
    right: 20px;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
    .header-left, .header-right {
        top: 15px;
    }
}
/* ===============================
   Header transparent über Hero-Bild
   =============================== */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;  /* Logo links, Navigation rechts */
    align-items: center;             /* Logo & Menü auf gleiche Höhe */
    padding: 20px 50px;
    background: transparent;
    z-index: 10;
    box-sizing: border-box;
}

/* Logo links */
.header-left {
    display: flex;
    align-items: center; /* Logo vertikal zentriert */
}

/* Navigation rechts */
.header-right {
    display: flex;
    align-items: center; /* Menü vertikal auf Logo-Höhe */
}

/* Menü horizontal */
.header-right .menu {
    display: flex;
    gap: 25px; /* Abstand zwischen Menüpunkten */
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: 20px;
}

/* Menü-Links */
.header-right .menu li a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    padding: 5px 0;
    display: block;
}

/* Dropdown-Menü */
.header-right .menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0,0,0,0.8);
    padding: 10px 0;
    min-width: 150px;
    z-index: 10;
    border-radius: 6px;
}

/* Dropdown anzeigen bei Hover */
.header-right .menu li:hover > ul {
    display: block;
}

/* Dropdown-Links */
.header-right .menu li ul li a {
    padding: 8px 15px;
    color: #fff;
    white-space: nowrap;
}

/* ===============================
   Mobile Anpassungen
   =============================== */
@media (max-width: 768px) {
    .header-right {
        flex-direction: column;
    }

    .header-right .menu {
        flex-direction: column;
        gap: 0;
        display: none; /* wird per JS eingeblendet */
    }

    .header-right .menu.show {
        display: flex;
    }
}

/* ================= Text unter Hero ================= */
.hero-text-section {
    padding: 60px 20px;
}

.hero-text-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text-left {
    flex: 1 1 40%;
}

.hero-text-right {
    flex: 1 1 55%;
}

.hero-text-left h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin: 0;
    font-family: 'Caveat', cursive;
    color: #222;
}

.hero-text-right p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .hero-text-container {
        flex-direction: column;
    }
    .hero-text-left,
    .hero-text-right {
        flex: 1 1 100%;
    }
    .hero-text-left h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    .hero-text-right p {
        font-size: 0.95rem;
    }
}

.hero-text-section {
    padding: 80px 20px;
    position: relative;
    z-index: 1; /* sicherstellen, dass Text sichtbar ist */
    margin-top: 0; /* kein negativer Abstand */
    box-sizing: border-box;
}

.hero-text-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text-left, .hero-text-right {
    box-sizing: border-box;
}

.hero-text-left {
    flex: 1 1 40%;
}

.hero-text-right {
    flex: 1 1 55%;
}

.hero-text-left h2 {
    font-size: 2rem;
    font-family: 'Caveat', cursive;
    color: #222;
    margin: 0 0 20px 0;
    text-align: left;
}

.hero-text-right p {
    font-size: 1rem;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    color: #333;
    line-height: 1.6;
    text-align: left;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-text-container {
        flex-direction: column;
    }
    .hero-text-left, .hero-text-right {
        flex: 1 1 100%;
    }
    .hero-text-left h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    .hero-text-right p {
        font-size: 0.95rem;
    }
}

/* ===== Hero Subline + H1 ===== */
.hero-subline {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 400; /* Regular */
    font-size: 2rem; /* Subline Größe */
    color: #000;
    margin-bottom: 10px;
}

.hero-section h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 900; /* Black */
    font-size: 4rem; /* behält bisherigen Wert */
    line-height: 1.2;
   
}

/* ===== H2 Text unter Hero größer ===== */
.hero-text-left h2 {
    font-family: 'Caveat', cursive;
    font-weight: 400; /* wie bisher */
    font-size: 2.5rem; /* größer als vorher 2rem */
    line-height: 1.3;
    color: #222;
    margin: 0 0 20px 0;
    text-align: left;
}