/*
 Theme Name:   Teamkarte
 Theme URI:    https://teamkarte.de
 Description:  Angepasste Generatepress
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

.card-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0,0,0,.125);
  border-radius: .25rem;
  width:200px;
  transform: rotate(-30deg);
}
.card-body-preview {
  flex: 1 1 auto;
  padding: 1rem 1rem;
}
.card-body-preview p {
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: #505478;
  margin: 0px;
}
.text-end-preview {
  text-align: right !important;
}

/* GeneratePress Site CSS */ .main-navigation a {
	letter-spacing: 1px;
}

.featured-image img, .post-image img {
	border-radius: 8px;
}

.drop-shadow {
	box-shadow: 0px 0px 20px rgba(200, 200, 200, 0.2);
}

.round-top-corners img {
	border-radius: 8px 8px 0px 0px;
}

.main-navigation:not(.slideout-navigation) .main-nav li.nav-button a {
	color: rgba(72,45,112,1.0);
	border: 3px;
	border-style: solid;
	line-height: 36px;
	border-radius: 2px;
	margin-left: 20px;
	transition: all 0.6s ease 0s;
}

.main-navigation:not(.slideout-navigation) .main-nav li.nav-button a:hover {
	color: rgba(72,45,112,0.8);
} /* End GeneratePress Site CSS */

.main-btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 0;
    padding: 20px 35px;
    font-size: 18px;
    border-radius: 8px !important;
    color: #fff;
    cursor: pointer;
    z-index: 5;
    -webkit-transition: all 0.4s ease-out 0s;
    transition: all 0.4s ease-out 0s;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#dc4985), color-stop(#e25c8b), color-stop(#e86d92), color-stop(#ed7d9a), to(#f18da2));
    background-image: linear-gradient(to bottom, #dc4985, #e25c8b, #e86d92, #ed7d9a, #f18da2);
}

.gb-button-wrapper a.gb-button-c93da5fe, .gb-button-wrapper a.gb-button-c93da5fe:visited {
    color: #505478;
    border-color: #505478;
}

.btn-outline-teamcard {
color: #00ACC1;
border-color: #00ACC1;
}

.main-navigation .main-nav ul li a {
    padding-left: 14px;
    padding-right: 14px;
}

.main-navigation:not(.slideout-navigation) .main-nav li.nav-button a {
    color: #00ACC1;
    border: 2px;
    border-style: solid;
    line-height: 36px;
    border-radius: 0.25em;
    margin-left: 20px;
    transition: all 0.6s ease 0s;
}

.main-navigation:not(.slideout-navigation) .main-nav li.nav-cta a {
    color: #ffffff;
	background-color: transparent;
    border: 2px solid #e86d92;
    line-height: 36px;
    border-radius: 0.25em;
    margin-left: 20px;
    transition: all 0.6s ease 0s;
    background-image: linear-gradient(to bottom, #dc4985, #e25c8b, #e86d92, #ed7d9a, #f18da2);
}

.main-navigation:not(.slideout-navigation) .main-nav li.nav-cta:hover a {
    color: #ffffff;
}

.main-navigation.navigation-stick {
    background-color: #ffffff;
}
.main-navigation .navigation-logo img {
    padding-top: 0;
}
.hero-img {
    -ms-transform: rotate(-35deg);
    transform: rotate(
-35deg);
}

.img-shadow {
	box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
}

.inside-site-info {
    padding: 35px 0;
    border-top: 1px solid rgba(134, 138, 170, 0.32);
}

.download-card {
	border-radius:8px;
	margin: 2px;
	box-shadow: 2px 4px #eeeeee;
}

.download-card img {
    border-radius:8px 8px 0 0;
}

.download-card p {
    border-radius:8px 8px 0 0;
}

.download-card a {
    color: #ffffff;
		width: 100%;
	padding: 12px;

}
.posted-on .updated {
    display: inline-block;
}

.posted-on .updated + .entry-date {
    display: none;
}
/* ============================================
   MEGAMENÜ PARENT STYLING
   ============================================ */

/* Entferne den Pfeil-Indikator beim Parent */
.megamenu-parent > a::after {
    display: none !important;
}

/* Megamenü Container */
.megamenu-parent .sub-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 30px;
    margin: 0;
    width: 600px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
}

/* Zeige Megamenü bei Hover */
.megamenu-parent:hover > .sub-menu {
    display: grid !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 3-Spalten Grid Layout */
.megamenu-parent > .sub-menu {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    column-gap: 25px;
}

.megamenu-parent:hover > .sub-menu {
    display: grid !important;
}

/* ============================================
   MENÜEINTRÄGE STYLING
   ============================================ */

/* Basis-Styling für alle Einträge */
.megamenu-parent .sub-menu > li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.megamenu-parent .sub-menu > li > a {
    display: flex;
    align-items: center;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #505478; !important;
    padding: 6px 0 !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    transition: all 0.2s ease;
		font-family: "Nunito", sans-serif;
		

}
}

.megamenu-parent .sub-menu > li > a:hover {
    color: #00bcd4 !important;
    padding-left: 10px !important;
}

/* ============================================
   SVG PFEIL-ICON für alle Einträge
   ============================================ */

.megamenu-parent .sub-menu > li > a::before {
    content: '';
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-right: 6px;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300bcd4' stroke-width='2'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease;
}

.megamenu-parent .sub-menu > li > a:hover::before {
    transform: translateX(3px);
}

/* ============================================
   POSITIONIERUNG
   ============================================ */

.megamenu-parent {
    position: relative;
}

/* Zentriere Megamenü unter der Navigation */
.megamenu-parent .sub-menu {
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
}

.megamenu-parent:hover > .sub-menu {
    transform: translateX(-50%) translateY(0);
}



/* ============================================
   RESPONSIVE ANPASSUNGEN
   ============================================ */

@media (max-width: 1024px) {
    /* 2 Spalten auf Tablets */
    .megamenu-parent > .sub-menu {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 1 Spalte auf Mobilgeräten */
    .megamenu-parent > .sub-menu {
        position: static !important;
        width: 100% !important;
        grid-template-columns: 1fr;
        padding: 20px !important;
        transform: none !important;
    }
    
    .megamenu-parent:hover > .sub-menu {
        transform: none !important;
    }
}

.weihnachts-banner {
            background-color: #00ACC1;
            color: white;
            text-align: center;
            padding: 12px 20px;
            position: relative;
            z-index: 9999;
        }
        .weihnachts-banner a {
            color: #fff;
            text-decoration: underline;
            font-weight: bold;
        }
        .banner-close {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
        }

/* Container für den Farbstrich-Bereich */
.herocard-brush-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 0;
}

/* Optimierter Farbstrich - OHNE Rundungen, mit transparenten Seiten */
.herocard-brush-stroke {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-2deg);
    width: 140%;
    height: 380px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(240, 147, 251, 0.12) 15%,
        rgba(245, 87, 108, 0.15) 40%,
        rgba(79, 172, 254, 0.15) 60%,
        rgba(240, 147, 251, 0.12) 85%,
        transparent 100%);
    border-radius: 0;
    z-index: 0;
}

/* Cards Container - 2x2 Grid */
.herocards-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Einzelne Hero Card */
.herocard {
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

/* Verschiedene Rotationen für die 4 Cards */
.herocard:nth-child(1) {
    transform: rotate(-2deg);
}

.herocard:nth-child(2) {
    transform: rotate(1.5deg);
}

.herocard:nth-child(3) {
    transform: rotate(1deg);
}

.herocard:nth-child(4) {
    transform: rotate(-1.5deg);
}

/* Hover-Effekt */
.herocard:hover {
    transform: translateY(-8px) rotate(0deg) scale(1.05);
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

/* Bildbereich der Card */
.herocard-image {
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    position: relative;
    overflow: hidden;
}

/* Content-Bereich der Card (grauer Bereich) */
.herocard-content {
    padding: 12px;
    background: #f5f5f5;
}

/* Nachrichtentext */
.herocard-message {
    color: #5a5a7d;
    font-size: 0.75em;
    line-height: 1.5;
    margin-bottom: 10px;
    min-height: 60px;
}

/* Autor-Name (rechts unten) */
.herocard-author {
    text-align: right;
    color: #7a7a9d;
    font-size: 0.7em;
    font-style: italic;
    font-weight: 500;
}

/* Responsive für Tablet - BLEIBT 2x2 */
@media (max-width: 768px) {
    .herocards-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px;
        max-width: 100%;
    }
    
    .herocard-image {
        height: 80px;
        font-size: 1.8em;
    }
    
    .herocard-message {
        font-size: 0.7em;
    }
    
    .herocard-brush-stroke {
        height: 350px;
    }
}

/* Responsive für Handy - AUCH 2x2 mit Overlap! */
@media (max-width: 480px) {
    .herocards-row {
        grid-template-columns: repeat(2, 1fr);  /* ← BLEIBT 2 Spalten! */
        gap: 8px;  /* Weniger Abstand */
        padding: 8px;
        max-width: 100%;
    }
    
    .herocard {
        /* Rotationen bleiben für Overlap-Effekt */
        margin: -5px;  /* ← Leichtes Overlap durch negativen Margin */
    }
    
    /* Cards auf Handy kompakter */
    .herocard-image {
        height: 60px;  /* Kleiner */
        font-size: 1.3em;
    }
    
    .herocard-content {
        padding: 8px;  /* Weniger Padding */
    }
    
    .herocard-message {
        font-size: 0.65em;  /* Kleinere Schrift */
        line-height: 1.4;
        margin-bottom: 6px;
        min-height: 45px;  /* Weniger Min-Height */
    }
    
    .herocard-author {
        font-size: 0.6em;
    }
    
    .herocard-brush-stroke {
        height: 320px;  /* Angepasst für kleinere Cards */
    }
}

/* Extra kleine Handys (unter 360px) - IMMER NOCH 2x2 */
@media (max-width: 360px) {
    .herocards-row {
        gap: 6px;
        padding: 6px;
    }
    
    .herocard {
        margin: -8px;  /* ← Mehr Overlap auf sehr kleinen Screens */
    }
    
    .herocard-image {
        height: 50px;
        font-size: 1.1em;
    }
    
    .herocard-content {
        padding: 6px;
    }
    
    .herocard-message {
        font-size: 0.6em;
        min-height: 40px;
    }
    
    .herocard-author {
        font-size: 0.55em;
    }
}