/*
Theme Name: SSO Server
Theme URI: https://schweizer.solutions/
Author: Schweizer Solutions
Author URI: https://schweizer.solutions/
Description: SSO Server Theme
Version: 1
Text Domain: ssos-theme
License: GNU General Public License v3 or Later
License URI: https://www.gnu.org/licenses/gpl.html
*/

/* Header Styling - Standard für alle */
.site-header {
    background-color: #0F0F0F;
    border-bottom: 1px solid #424242;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Standard-Farben für Header-Menü */
.header-menu li a {
    color: #fff;
}

/* Admin-Design nur für Administratoren */
body.admin-user .site-header {
    background-color: #0F0F0F;
    border-bottom: 1px solid #424242;
}

/* Admin-Bar Anpassung für Sticky Header */
body.admin-bar.admin-user .site-header {
    top: 32px;
}

/* Mobile Admin-Bar Anpassung */
@media screen and (max-width: 782px) {
    body.admin-bar.admin-user .site-header {
        top: 46px;
    }
}

body.admin-user .header-menu li a {
    color: #fff;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Header Navigation */
.header-navigation {
    flex: 1;
}

/* Mobile Menu Toggle (Burger Button) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    order: 1;
}

.burger-line {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

body:not(.admin-user) .burger-line {
    background: #333;
}

/* Burger Animation */
.mobile-menu-toggle.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .burger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-nav-overlay.active .mobile-nav-container {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.mobile-nav-header h3 {
    margin: 0;
    font-family: 'Francois One', cursive;
    color: #333;
    font-size: 1.1rem;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-close:hover {
    color: #d63638;
}

/* Mobile Menu Items */
.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
}

.mobile-menu li {
    margin: 0;
}

.mobile-menu li a {
    display: block;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-family: 'Franklin Gothic Compressed', sans-serif;
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.mobile-menu li a:hover,
.mobile-menu li.current-menu-item a,
.mobile-menu li.current_page_item a {
    background: #f8f9fa;
    color: #d63638;
}

.header-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.header-menu li a {
    text-decoration: none;
    font-family: 'Franklin Gothic Compressed', sans-serif;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    font-weight: normal !important;
}

/* Hover und Aktiv-Farben für alle */
.header-menu li a:hover,
.header-menu li.current-menu-item a,
.header-menu li.current_page_item a {
    color: #d63638;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
    margin-left: auto;
    order: 2;
}

.profile-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #d63638;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-family: 'Francois One', cursive;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-toggle:hover {
    background: #b32629;
}

.profile-avatar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    overflow: hidden;
}

.profile-avatar-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.profile-dropdown.active .profile-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.profile-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.profile-dropdown.active .profile-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-items {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.profile-menu-items li {
    margin: 0;
}

.profile-menu-items li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    font-family: 'Francois One', cursive;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.profile-menu-items li a:hover {
    background: #f8f9fa;
}

.profile-menu-items li:last-child a {
    color: #d63638;
    border-top: 1px solid #e1e1e1;
}

.profile-menu-items li:last-child a:hover {
    background: #fef2f2;
}

.menu-icon {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        gap: 1rem;
        flex-direction: row;
    }
    
    .header-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .profile-menu {
        justify-content: center;
    }
}

/* Footer Styling */
.site-footer {
    background-color: #1E1E1E;
    color: #fff;
    padding: 3rem 0 2rem;
    margin-top: auto;
    position: static;
    box-shadow: 0px -19px 28px -8px rgba(190, 190, 190, 0.5);
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: left;
}

.footer-column {
    text-align: left;
}

.footer-title {
    font-family: 'Francois One', cursive;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: left;
}

.footer-subtitle {
    font-family: 'Francois One', cursive;
    font-size: 1.2rem;
    color: #fff;
    margin: 2rem 0 1rem;
    text-align: left;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-menu li {
    margin-bottom: 0.8rem;
    text-align: left;
}

.footer-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
    font-family: "Open Sans", sans-serif;
    line-height: 1.6;
    transition: color 0.3s ease;
    text-align: left;
    display: block;
}

.footer-menu li a:hover {
    color: #fff;
}

/* App Buttons */
.app-buttons {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.app-button img {
    height: 40px;
    width: auto;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-start;
}

.social-icon {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icon img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Footer Logo */
.footer-logo {
    margin-top: 2rem;
    text-align: left;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
}

/* Body und Layout - Footer nicht sticky */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Open Sans', sans-serif;
}

/* Mobile Menu geöffnet - Scrolling verhindern */
body.mobile-menu-open {
    overflow: hidden;
}

#wrapper {
    flex: 1;
}

/* Content Container */
#container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

#content {
    width: 100%;
}

/* Tablet Layout (1000px - 800px) */
@media (max-width: 1000px) and (min-width: 800px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* Responsive Design - Tablet */
@media (max-width: 800px) {
    #container {
        padding: 1.5rem 1rem;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-menu li {
        text-align: left;
    }
    
    .app-buttons {
        justify-content: flex-start;
    }
    
    .social-icons {
        justify-content: flex-start;
    }
}

/* Mobile Design */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
        order: 1;
        margin: 0;
        align-self: center;
    }
    
    .header-navigation {
        display: none;
    }
    
    .profile-dropdown {
        order: 2;
        margin: 0;
        align-self: center;
    }
    
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }
    
    /* Burger und Profil auf gleicher Höhe */
    .mobile-menu-toggle,
    .profile-toggle {
        height: 40px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 480px) {
    #container {
        padding: 1rem;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-menu li {
        text-align: left;
    }
    
    .app-buttons {
        justify-content: flex-start;
    }
    
    .social-icons {
        justify-content: flex-start;
    }
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* franklin-gothic-compressed - Header Font */
@font-face {
    font-display: swap;
    font-family: 'Franklin Gothic Compressed';
    font-style: normal;
    font-weight: 400;
    src: url('./assets/fonts/franklin-gothic-compressed.woff?v=1.0') format('woff');
}

/* francois-one-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Francois One';
    font-style: normal;
    font-weight: 400;
    src: url('./assets/fonts/francois-one-v21-latin-regular.eot'); /* IE9 Compat Modes */
    src: url('./assets/fonts/francois-one-v21-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('./assets/fonts/francois-one-v21-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ url('./assets/fonts/francois-one-v21-latin-regular.woff') format('woff'), /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+, iOS 5+ */ url('./assets/fonts/francois-one-v21-latin-regular.ttf') format('truetype'), /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ url('./assets/fonts/francois-one-v21-latin-regular.svg#FrancoisOne') format('svg'); /* Legacy iOS */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Francois One', Sans-serif !important;
    word-wrap: break-word;
}

* {
    font-family: 'Open Sans', Sans-serif;
}

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

html {
    scroll-behavior: smooth
}

body {
    line-height: 1
}

a {
    text-decoration-skip-ink: auto
}

a[href^="tel"] {
    color: inherit;
    text-decoration: none
}

button {
    outline: 0
}

ol, ul {
    list-style: none
}

blockquote, q {
    quotes: none
}

blockquote:before, blockquote:after, q:before, q:after {
    content: '';
    content: none
}

q {
    display: inline;
    font-style: italic
}

q:before {
    content: '"';
    font-style: normal
}

q:after {
    content: '"';
    font-style: normal
}

textarea, input[type="text"], input[type="button"], input[type="submit"], input[type="reset"], input[type="search"], input[type="password"] {
    -webkit-appearance: none;
    appearance: none;
}

input[type="search"] {
    -webkit-appearance: textfield
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

th, td {
    padding: 2px
}

big {
    font-size: 120%
}

small, sup, sub {
    font-size: 80%
}

sup {
    vertical-align: super
}

sub {
    vertical-align: sub
}

dd {
    margin-left: 20px
}

kbd, tt {
    font-family: courier;
    font-size: 12px
}

ins {
    text-decoration: underline
}

del, strike, s {
    text-decoration: line-through
}

dt {
    font-weight: bold
}

address, cite, var {
    font-style: italic
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent
}

.sticky {
}

.bypostauthor {
}

.wp-caption {
}

.wp-caption-text {
}

.gallery-caption {
}

.alignright {
}

.alignleft {
}

.aligncenter {
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
    word-break: normal
}

.screen-reader-text:focus {
    background-color: #f7f7f7;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6);
    clip: auto !important;
    -webkit-clip-path: none;
    clip-path: none;
    color: #007acc;
    display: block;
    font-size: 14px;
    font-size: .875rem;
    font-weight: 700;
    height: auto;
    right: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000
}

.skip-link {
    left: -9999rem;
    top: 2.5rem;
    z-index: 999999999;
    text-decoration: underline
}

.skip-link:focus {
    display: block;
    left: 6px;
    top: 7px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: normal;
    padding: 15px 23px 14px;
    z-index: 100000;
    right: auto
}

.visually-hidden:not(:focus):not(:active), .form-allowed-tags:not(:focus):not(:active) {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px 1px 1px 1px);
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap
}

body {
    font-family: Arial, sans-serif;
}

h1 {
    font-size: 2rem;
    margin-block-start: .5rem;
    margin-block-end: 1rem;
    font-weight: 500;
    line-height: 1.2;
}

strong {
    font-weight: 600;
}

.login-container {
    padding: 2em 2em 2em 18em;
    background-image: url(https://wissen.alex-fischer-duesseldorf.de/wp-content/uploads/2024/02/af_register_form_bg.png);
    background-size: cover;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 746px;
}

.ssos-lost-password {
    text-align: right;
    color: #333;
}

.email-group,
.password-group {
    position: relative;
    display: flex;
    align-items: center;
}

.email-group input,
.password-group input {
    padding: 10px 10px 10px 35px;
}

.email-group img,
.password-group img {
    position: absolute;
    left: 5px;
    opacity: .6;
    transition: opacity .3s ease-in-out;
}

.email-group:hover img,
.password-group:hover img {
    opacity: 1;
}

.form-group input:focus {
    box-shadow: 0 0 5px rgb(169 40 40 / 50%);
}

.checkbox-group label {
    transition: color .3s ease-in-out;
}

.checkbox-group label:hover,
a {
    color: #a92828;
}

a:hover {
    color: #DC3131;
}

.form-group input {
    border: 1px solid #939393 !important;
    color: #686868;
    font-size: 16px;
}

.form-group label {
    font-size: 100%;
}

.form-group input[type=checkbox] {
    accent-color: #a92828;
    width: 15px;
    height: 15px;
}

.checkbox-group {
    gap: 5px;
}

.login-button {
    background-color: #DC3131;
}

.login-button:hover {
    background-color: #a92828;
}

.form-group-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-group-container .form-group {
    flex: 1;
    min-width: calc(50% - 1rem);
}

main#content {
    padding: 0 1em 6em;
}

.ssos-logout-link:hover .logout-icon {
    filter: brightness(0) saturate(100%) invert(29%) sepia(45%) saturate(1267%) hue-rotate(319deg) brightness(113%) contrast(123%);
}

.ssos-logout-link .logout-icon  {
    filter: brightness(0) saturate(100%) invert(21%) sepia(21%) saturate(7018%) hue-rotate(343deg) brightness(96%) contrast(92%);
}

footer {
    background-color: #1E1E1E;
    color: #fff;
    text-align: center;
    padding: 1.5em;
    margin-top: 5em;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 99;
}

.footer-menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.footer-nav li {
    margin: 0;
    padding: 0;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer-nav a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .form-group-container .form-group {
        min-width: 100%;
    }

    .login-container {
        background-image: none;
        padding-left: 2em;
        min-height: auto;
        max-width: unset;
    }

    h1 {
        font-size: 1.5rem;
    }

    footer {
        position: initial;
    }
}
