/* ============================================
   Sue-Kreativ - Stylesheet
   ============================================ */

/* Reset und Basis */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: 1px solid red;
    
}

:root {
    --color-red: #e4301e;
    --color-red-hover: #e4301e;
    --color-dark-gray: #1a1a1a;
    --color-mid-gray: #4d4d4d;
    --color-white: #ffffff;
    --color-black: #000000;
    --font-main: 'Noto Sans', sans-serif;
    --frame-offset: 3%;
    --border-radius: 10vw;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 1rem;
    color: var(--color-white);
}

body {
    background: linear-gradient(to bottom, var(--color-dark-gray) -20%, var(--color-mid-gray) 80%);
    min-height: 100vh;
}

/* =====================
   Frame Container
===================== */

.frame-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--frame-offset);
}

/* =====================
   Roter Rahmen
===================== */

.red-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border: 4px solid var(--color-red);
    border-top-left-radius: var(--border-radius);
    box-shadow: 
        /* Innerer schwarzer Schatten */
        inset 0 0 30px 10px rgba(28, 28, 28, 0.5),
        /* inset 0 0 60px 20px rgba(0, 0, 0, 0.4), */
        /* Äußerer weißer Nebel */
        0 0 40px 15px rgba(255, 255, 255, 0.15),
        0 0 80px 30px rgba(255, 255, 255, 0.08),
        0 0 120px 50px rgba(255, 255, 255, 0.04);
}


/* =====================
   Logo
===================== */

.logo-container {
    position: absolute;
    top: 0.4vw;
    left: 2vw;
    z-index: 100;
}

.logo {
    width: 14vw;
    height: auto;
    animation: pulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(196, 30, 58, 0.5));
}

.logo-klein {
    width: 1.8vw;
    height: auto;
    animation: pulse 2.5s linear infinite;
    /*filter: drop-shadow(0 0 10px rgba(196, 30, 58, 0.5));*/
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

/* =====================
   Navigation
===================== */

.main-nav {
    position: absolute;
    top: 0;
    right: 0;
    left: 20vw;
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 2vw;
    z-index: 90;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2vw;
    flex-direction: row-reverse;
}

.nav-link {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.9vw;
    position: relative;
    padding: 0.5em 0;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-red);
    transition: width 0.4s ease 0.1s;
}

.nav-link:hover {
    color: var(--color-red);
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.9),
        0 0 40px rgba(255, 255, 255, 0.7),
        0 0 60px rgba(255, 255, 255, 0.5),
        0 0 80px rgba(255, 255, 255, 0.3);
}

.nav-link:hover::after {
    width: 100%;
}


/* =====================
   Hamburger Menü
===================== */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


/* =====================
   Admin Dropdown
===================== */

.admin-dropdown {
    position: relative;
    margin-left: 2vw;
}

.user-initial {
    width: 3vw;
    height: 3vw;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    background: var(--color-red);
    color: var(--color-white);
    border: none;
    font-weight: 700;
    font-size: 1.5vw;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(196, 30, 58, 0.5);
}

.user-initial:hover {
    transform: scale(1.1);
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(196, 30, 58, 0.7);
}

.admin-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    border: 2px solid var(--color-red);
    border-radius: 10px;
    padding: 1em;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 255, 255, 0.1);
}

.admin-dropdown:hover .admin-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.admin-menu a {
    display: block;
    color: var(--color-white);
    text-decoration: none;
    padding: 0.5em 1em;
    font-size: 1.2vw;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.admin-menu a:hover {
    color: var(--color-red);
    background: rgba(196, 30, 58, 0.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}


/* =====================
   Hauptinhalt
===================== */

.content {
    position: absolute;
    top: 28vh;
    left: 12vw;
    right: 5vw;
    bottom: 10vh;
}

.hero-section {
    max-width: 100%;
}

.main-title {
    color: var(--color-red);
    margin-bottom: 3vh;
}

.title-line {
    display: block;
    font-size: clamp(1.5rem, 3vw, 3rem);
    line-height: 1.2;
    text-shadow: 
        0 0 20px rgba(196, 30, 58, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.5);
}

.services-text {
    color: var(--color-white);
    font-size: clamp(1rem, 2vw, 2rem);
    line-height: 1.6;
    margin-bottom: 4vh;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.quote-text {
    color: var(--color-white);
    font-style: italic;
    font-size: clamp(0.9rem, 1.8vw, 1.8rem);
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}


/* =====================
   Footer
===================== */

.main-footer {
    position: absolute;
    bottom: 1vh;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    font-size: clamp(0.7rem, 1.2vw, 1rem);
    font-weight: 400;
    gap: 0.5em;
}

.footer-spacer {
    width: 2em;
}

.footer-link {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-red);
}


/* =====================
   Login Modal
===================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, var(--color-dark-gray), var(--color-mid-gray));
    border: 3px solid var(--color-red);
    border-radius: 20px;
    padding: 2em;
    width: 90%;
    max-width: 40%;
    max-height: 70%;
    position: relative;
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(255, 255, 255, 0.1),
        0 0 100px rgba(196, 30, 58, 0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--color-red);
    transform: scale(1.2);
}

.modal-content h2 {
    color: var(--color-red);
    text-align: center;
    margin-bottom: 1.0em;
    font-size: 1.8em;
}


/* =====================
   Formular
===================== */

.form-group {
    margin-bottom: 1.5em;
}

.form-group label {
    display: block;
    color: var(--color-white);
    margin-bottom: 0.5em;
    font-size: 0.9em;
}

.form-group input {
    width: 100%;
    padding: 0.5em .1em;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--color-white);
    font-family: var(--font-main);
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-red);
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.3);
}

.form-message {
    color: var(--color-red);
    text-align: center;
    margin-bottom: .6em;
    font-size: 0.9em;
    min-height: 1.5em;
}

.submit-btn {
    width: 100%;
    padding: .6em;
    background: var(--color-red);
    border: none;
    border-radius: 10px;
    color: var(--color-white);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--color-red-hover);
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(196, 30, 58, 0.5);
    transform: translateY(-2px);
}

/* ============================================
   Unterseiten-spezifische Styles
   ============================================ */

   
/* =================================
   Seitliches Menü für Unterseiten
==================================== */

.side-menu {
    position: fixed;
    left: calc(var(--frame-offset) + 10px);
    bottom: 22vh;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    z-index: 100;
}

.side-menu .current-page {
    color: var(--color-red);
    font-size: 1.5rem;
    font-weight: 400;
    text-shadow:
    1px 1px 2px black,
    0 0 1em #f5f3f3,
    0 0 0.2em #f5f3f3;
}


/* =====================
   Home Link in Unterseiten-Navigation
===================== */

.nav-menu .home-link {
    color: var(--color-white);
}

/* =====================
   LEISTUNGEN
===================== */

.leistungen-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1fr;
}

.text_main_links p,
.text_main_rechts p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* =====================
   Überschriften
===================== */

.ueberschrift_rot {
  color: red;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.ueberschrift_weiss {
  color: white;
  margin-top: 1rem;
}

  
/* ============================================
   ============================================
   Responsive Design
   ============================================
   ============================================*/
  

/* =====================
   Tablet
===================== */

@media screen and (max-width: 1024px) {
    :root {
        --frame-offset: 3%;
        --border-radius: 8vw;
    }
    
    html, body {
        font-size: 2.5vw;
    }
    
    .logo {
        width: 22vw;
    }
    
    .main-nav {
        left: 24vw;
    }
    
    .nav-link {
        font-size: 2.2vw;
    }
    
    .content {
        left: 8vw;
        top: 25vh;
    }
}

/* =====================
   Smartphone
===================== */

@media screen and (max-width: 768px) {
    :root {
        --frame-offset: 2%;
        --border-radius: 6vw;
    }
    
    html, body {
        font-size: 3.5vw;
    }
    
    .logo-container {
        top: 1vw;
        left: 1vw;
    }
    
    .logo {
        width: 25vw;
    }
    
    .main-nav {
        left: 0;
        right: 0;
        justify-content: flex-end;
        padding-right: 4vw;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        gap: 3vh;
        padding: 2em;
        transition: right 0.4s ease;
        border-left: 3px solid var(--color-red);
        box-shadow: 
            inset 10px 0 30px rgba(0, 0, 0, 0.5),
            -20px 0 40px rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 5vw;
    }
    
    .content {
        left: 5vw;
        right: 5vw;
        top: 20vh;
    }
    
    .title-line {
        font-size: clamp(1.2rem, 6vw, 2rem);
    }
    
    .services-text {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem);
    }
    
    .quote-text {
        font-size: clamp(0.8rem, 3vw, 1rem);
    }
    
    .admin-dropdown {
        position: fixed;
        top: 2vh;
        right: 15vw;
    }
    
    .user-initial {
        width: 10vw;
        height: 10vw;
        font-size: 4vw;
    }
    
    .admin-menu a {
        font-size: 3.5vw;
    }
    
    .main-footer {
        font-size: 2.5vw;
        flex-wrap: wrap;
        gap: 0.3em;
    }
    
    .footer-spacer {
        width: 1em;
    }
    
    /* Side Menu auf Mobile */
    .side-menu {
        bottom: auto;
        top: 15vh;
        left: calc(var(--frame-offset) + 5px);
    }
    
    .side-menu .current-page {
        font-size: 3vw;
    }
}

/* =====================
   kleine Smartphones
===================== */

@media screen and (max-width: 480px) {
    .logo {
        width: 30vw;
    }
    
    .content {
        top: 18vh;
    }
    
    .modal-content {
        padding: 2em;
        margin: 1em;
    }
}

/* =====================
   REFERENZEN LAYOUT
===================== */

.content-referenzen {
  width: 85%;
  display: grid;
  grid-template-columns: 780px 1fr;
  gap: 3rem;
  margin-top: 10vh;
  margin-left: 10rem;
}

/* =====================
   SUBMENÜ
===================== */

.submenu {
  font-size: 1.1rem;
}

.submenu_referenzen {
  list-style: disc;
  color: red;
}

.submenu_referenzen li {
  margin-bottom: 0.6rem;
}

.submenu_referenzen a {
  color: white;
  transition: color 0.3s;
}

.submenu_referenzen a:hover {
  color: red;
}

/* =====================
   SLIDER
===================== */

.slider_main_REF {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.image-container-REF {
  max-width: 720px;
}

.image-container-REF img {
  width: 100%;
}

.nav {
  background: none;
  border: none;
  color: red;
  font-size: 3rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.nav:hover {
  transform: scale(1.2);
}

/* =====================
   MOBILE
===================== 

@media (max-width: 1023px) {

  .content-referenzen {
    grid-template-columns: 1fr;
    margin-top: 8rem;
    margin-left: 2rem;

  }

  .submenu {
    display: none;
  }

  .slider_main_REF {
    justify-content: center;
    gap: 1rem;
  }

  .nav {
    font-size: 2.2rem;
  }

  .image-container-REF {
    max-width: 90%;
  }
}
*/
/* Submenü Referenzen*/
#submenu {
  position: absolute;
  top: 25vh;
  right: 10vw;
  width: 7%;
  text-align: left;
  font-size: 2.5vh;
  z-index: 1;
  color: red;
}