:root {
    --primary-bg-color: rgba(25, 25, 25, 1);
    --secondary-bg-color: rgba(60, 60, 60, 1);
    --primary-text-color: rgb(255, 255, 255, 1);
    --secondary-text-color: #ff5f0f;
}
/* Skip-Link für Barrierefreiheit */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 0;
}
* {
    margin: 0;
    padding: 0;
}
body {
    min-height: 100vh;
    font-family: 'Orbitron';
    background-color: var(--primary-bg-color);
    color: var(--primary-text-color);
}
h1 {
    color: var(--primary-text-color);
    font-size: clamp(1.5rem, 3vw + 1rem, 3.5rem); 
}
h2 {
    color: var(--secondary-text-color);
    font-size: clamp(1.2rem, 1.5vw + 0.3rem, 1.8rem);
}
h3 {
    color: var(--primary-text-color);
    font-size: clamp(1.1rem, 1.2vw + 0.4rem, 1.8rem);
}
h4{
    font-family: 'Kodchasan';
    font-size: clamp(1.1rem, 1.1vw + 0.5rem, 1.6rem);
}
h5{
    font-family: 'Kodchasan';
    font-size: clamp(0.8rem, 0.7vw + 0.5rem, 1.1rem);
}
p{
    color:var(--primary-text-color);
    font-family: 'Kodchasan';
    font-size: clamp(1rem, 1.2vw + 0.2rem, 1.4rem);
    hyphens: auto;

    margin-top: 1rem;
    text-align: justify;
    line-height: 150%;
}
a {
    text-decoration: none;
}

/* header / footerspezifisch */
header ul,
footer ul {
    margin: 0;
    list-style: none;
}
header ul li {
    padding-left: 0;
    font-family: 'Orbitron';
    font-size: clamp(0.8rem, 0.5vw + 0.5rem, 1rem);
    line-height: 100%;
    list-style-type: none;
}
footer ul li {
    font-family: 'Kodchasan';
}
/* Startseite Sections */
#idFoto_section,
#idSoftware_section,
#idSupport_section,
#idWebdev_section {
    display: flex;
    justify-content: center;
    align-items: center;
}
.subline {
    color: var(--primary-text-color);
    font-family: 'Orbitron';
    font-size: clamp(1.4rem, 2vw + 0.4rem, 2.8rem);
    font-weight: bold;
    line-height: 110%;
}
.section_ctn {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.index_section_ctn {
    margin: 3% auto 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.section_h2 {
    width: 20%;
    margin-top: 1rem;
}
.index_section_ctn h2 {
    margin-right: 3%;
    text-align: end;
}
.section_ctn .section_subline {
    width: 30%;
}
.section_ctn .section_subline .subline {
    text-align: start;
}
.section_ctn .section_text {
    width: 50%;
    display: flex;
    flex-direction: column;
    text-align: start;
}
.index_section_ctn_reverse {
    margin: 3% auto 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: row-reverse;
}
.index_section_ctn_reverse h2 {
    margin-left: 3%;
    text-align: start;
}
.index_section_ctn_reverse .section_subline {
    width: 30%;
}
.index_section_ctn_reverse .section_subline .subline {
    text-align: end;
}
.index_section_ctn_reverse .section_text {
    display: flex;
    flex-direction: column;
    text-align: end;
}
section ul,
section ol {
    margin: 2rem 15px;
}
section ul li,
section ol li {
    padding-left: 15px;
    font-size: clamp(1rem, 1.2vw + 0.2rem, 1.4rem);
    font-family: 'Kodchasan';
    line-height: 175%;
    list-style-type: square;
}

/* Unterseiten */

/* Fokus-Stil für Links im Fließtext (z.B. in der Datenschutzerklärung) */
main a:focus {
    outline: 2px solid var(--secondary-text-color);
    outline-offset: 4px;
    border-radius: 4px;
    color: var(--secondary-text-color);
}
main p a,
main li a {
    color: var(--secondary-text-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}
main p a:hover,
main li a:hover {
    color: var(--primary-text-color);
    text-decoration-thickness: 2px;
}
/* Fokus (Barrierefreiheit) */
main p a:focus,
main li a:focus {
    outline: 2px solid var(--secondary-text-color);
    outline-offset: 3px;
    border-radius: 3px;
}
.subheading {
    width: 100%;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
}
.section_ctn .subheading h2 {
    margin-right: 0;
    text-align: start;
}
.slide-in-left {
    transform: translateX(-10%);
    opacity: 0;
}
/* Fallback: Falls JavaScript deaktiviert ist, Inhalte sofort anzeigen */
@media (prefers-reduced-motion: reduce) {
    .slide-in-left {
        opacity: 1;
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
.slide-in-amin {
    transition: 0.5s ease-in;
    transform: translateX(0%);
    opacity: 1;
}
.horizontallinie {
    width: 100%;
    height: 1px;
    background-color: var(--primary-text-color);
    opacity: 0;
    scale: 0 1;
    margin-top: 3%;
}
.horizontallinie-anim {
    transition: 0.8s ease-in;
    scale: 1 1;
    opacity: 0.3;
}
.about_me_section_container {
    transform: translateY(-50%) scale(0);
    opacity: 0;
    box-shadow: none;
}
.about-me-anim {
    transition: 0.4s ease-in;
    transform: translateY(0%) scale(1);
    opacity: 1;
    box-shadow:
        inset 0px 2px 5px whitesmoke;
}
.margin-top {
    margin-top: 3%;
}
.margin-top-sm {
    margin-top: 1%;
}
.margin-bottom {
    margin-bottom: 3%;
}
.margin-bottom-sm {
    margin-bottom: 1%;
}
.section_btn  {
    width: 52%;
    margin-top: 30px;
    padding: 15px;
    display: flex;
    justify-content: center;
    background-color: var(--secondary-bg-color);
    color: var(--primary-text-color);
    font-family: 'Orbitron';
    font-size: clamp(0.9rem, 0.5vw + 0.5rem, 1.1rem);
    letter-spacing: 1px;
    border: none;
    border-radius: 0px 50px 50px;
    transition: 0.4s ease-in-out;
}
.section_btn:hover,
.section_btn:focus {
    background-color: var(--secondary-text-color);
    color: var(--secondary-bg-color);
}
.site_btn {
    padding: 15px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary-text-color);
    color: var(--primary-text-color);
    font-family: 'Orbitron';
    font-size: clamp(0.95rem, 0.5vw + 0.5rem, 1.1rem);
    border-radius: 0px 50px 50px;
    transition: 0.4s ease-in-out;
    box-shadow:
        inset 0 0 5px var(--primary-text-color),
        inset 2px 0 5px var(--primary-text-color),
        inset -5px 0 5px var(--secondary-text-color),
        0 0 5px var(--primary-text-color),
        -5px 0 10px var(--secondary-text-color),
        5px 0 10px var(--secondary-text-color);
}
.site_btn:hover,
.site_btn:focus {
    background-color: var(--secondary-bg-color);
    color: var(--primary-text-color);
}
.card_btn {                      /*Button in der Card*/
    width: 65%;
    margin: auto;
    margin-bottom: 10px;
    padding: 15px;
    text-align: center;
    background-color: var(--secondary-bg-color);
    color: var(--primary-text-color);
    font-family: 'Orbitron';
    font-size: clamp(0.9rem, 0.5vw + 0.5rem, 1.1rem);
    border-radius: 0px 50px 50px;
    transition: 0.4s ease-in-out;
    box-shadow:
            inset 0 0 5px var(--primary-text-color),
            inset 2px 0 5px var(--primary-text-color),
            inset -5px 0 5px var(--secondary-text-color),
            0 0 5px var(--primary-text-color),
            -5px 0 10px var(--secondary-text-color),
            5px 0 10px var(--secondary-text-color);
}
.card_btn:hover,
.card_btn:focus {               /*hovern über Button in der Card*/
    background-color: var(--secondary-text-color);
    color: var(--secondary-bg-color);
}
.start_sctn {               /* Start-Section auf den Seiten Development, Fotografie, Software und Wartung */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.start_sctn h3 {            /* alle h3 in den Seiten Seiten Development, Fotografie, Software und Wartung */
    margin-bottom: 1%;
    color: var(--secondary-text-color);
}
.start_sctn_pre_ctn {
    width: 80%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pre_main_container {
    width: 80%;
    margin-top: 3%;
    display: flex;
    flex-direction: column;
}
.main_container {
    width: 80%;
    margin-top: 3%;
    display: flex;
    flex-direction: column;
}
.main_content {
    width: 100%;
    padding: 5px;
    display: flex;
    gap: 15px;
}
.main_content_reverse {
    width: 100%;
    display: flex;
    gap: 15px;
}
.main_content_text {
    width: 65%;
    margin-right: 25px;
}
.main_content_text_wide {
    width: 100%;
}
.main_content_text h2,
.main_content_text_wide h2 {
    text-align: start;
}
/* .main_content_text h4:not(:first-of-type),
.main_content_text_wide h4:not(:first-of-type) { */
.main_content_text h4:not(:first-of-type),
.main_content_text_wide h4:not(:first-of-type) {
    margin-top: 3%;
}
.cards_ctn {
    width: 100%;
    margin: 3% auto 0;
    display: flex;
    justify-content: space-evenly;
}
.card {
    scale: 0.98 0.98;
    width: 25%;
    padding: 25px;
    box-sizing: border-box; 
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background-image: radial-gradient(at bottom right, var(--primary-text-color), var(--secondary-bg-color), var(--primary-bg-color), var(--secondary-text-color));
    border-left: 10px solid rgba(245, 245, 245, 0.8);
    border-radius: 20px;
    transition: 250ms ease;
}
.card:hover {
    scale: 1 1;
}
.card_header {
    text-align: center;
}
.card_header h2 {
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
}
.card_content ul {
    margin: 5% 0 5% 5px;
}
.card_content ul li {
    font-family: 'Kodchasan';
    line-height: 175%;
    font-size: clamp(0.8rem, 0.5vw + 0.5rem, 1rem);
    list-style-type: square;
    padding-left: 10px;
}
.cards_sm_ctn,
.inventar_cards_sm_ctn,
.feature_cards_ctn {
    width: 100%;
    margin: 3% auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: stretch;
    gap: 25px;
}
.card_sm {
    scale: 0.98 0.98;
    width: 32%;
    padding: 25px;
    box-sizing: border-box; 
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(at bottom right, var(--primary-text-color), var(--secondary-bg-color), var(--primary-bg-color), var(--secondary-text-color));
    color: var(--primary-text-color);
    font-family: 'Kodchasan';
    font-size: clamp(0.9rem, 0.5vw + 0.5rem, 1.1rem);
    text-align: center;
    border-left: 10px solid rgba(245, 245, 245, 0.8);
    border-radius: 20px;
    transition: 250ms ease;
    overflow: auto;
}
.card_sm:hover {
    scale: 1 1;
}
.card_sm a {
    text-align: justify;
    hyphens: auto;
}
.feature_card {
    scale: 0.98 0.98;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, var(--secondary-bg-color), var(--primary-bg-color));
    border-left: 10px solid rgba(245, 245, 245, 0.8);
    border-radius: 20px;
    transition: 250ms ease;
    box-shadow: 1px 1px 15px var(--primary-bg-color);
}
.feature_card h3 {
    color: var(--secondary-text-color);
    font-size: clamp(1.1rem, 1.4vw + 0.3rem, 1.6rem);
    font-family: 'Kodchasan';
}
.feature_card_content {
    flex: 1;
}
.feature_card_content ul {
    margin: 1.5rem 0;
    padding: 0 0 0 20px;
}
.feature_card_content ul li {
    font-family: 'Kodchasan';
    line-height: 175%;
    font-size: clamp(0.9rem, 0.6vw + 0.5rem, 1.1rem);
    list-style-type: square;
    padding-left: 10px;
}
.feature_card .card_btn {
    width: 92%;
    margin: 0 auto 20px auto;
}

@media (min-width:801px) {
    .section_text {
        width: 50%;
    }
    .section_btn_ctn_start {
        display: flex;
        justify-content: flex-start;
    }
    .section_btn_ctn_end {
        display: flex;
        justify-content: flex-end;
    }
}

@media (min-width:1201px) {
    .section_ctn,
    .section_ctn_reverse {
        width: 100%;
    }
    .index_section_ctn,
    .index_section_ctn_reverse {
        width: 80%;
    }
}

@media (max-width:1920px) {
    .index_section_ctn .section_subline .subline {
        margin-right: 4%;
    }
    .index_section_ctn_reverse .section_subline .subline {
        margin-left: 4%;
    }
    .card {
        flex: 1 1 300px;
        min-width: 300px;
        max-width: 30%;
    }
}

@media (max-width:1200px) {
    .section_ctn,
    .section_ctn_reverse {
        width: 80%;
    }
    .section_ctn > .main_container,
    .section_ctn_reverse > .main_container {
        width: 100%;
    }
    .cards_ctn {
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .card {
        min-width: 40%;
        max-width: 48%;
        margin-top: 3%;
        padding: 15px;
        overflow: auto;
    }
    .card_sm {
        width: 47%;
        padding: 20px;
    }
    .section_btn  {
        width: 75%;
        padding: 10px;
    }
    .site_btn {
        padding: 10px;
    }
    .feature_card_content ul {
        padding-left: 1px;
    }
    .feature_card_content ul li {
        padding-left: 5px;
    }
}

@media (max-width:1080px) {
    .cards_ctn {
        margin: 0 auto;
        flex-wrap: wrap;
        justify-content: center;
    }
    .card {
        scale: 1 1;
        min-width: 60%;
        max-width: 80%;
        margin-top: 3%;
        padding: 15px;
        overflow: auto;
    }
    .card_content ul {
        margin: 5% 20px;
    }
    .feature_cards_ctn,
    .cards_sm_ctn,
    .inventar_cards_sm_ctn {
        grid-template-columns: minmax(0, 70%);
        justify-content: center;
        gap: 30px;
    }
    .card_sm {
        scale: 1 1;
        width: 70%;
        margin-top: 3%;
        padding: 15px;
        overflow: auto;
    }
    .feature_cards_ctn .feature_card,
    .cards_sm_ctn .feature_card,
    .inventar_cards_sm_ctn .feature_card{
        scale: 1 1;
        padding: 15px;
    }
     .feature_card_content ul {
        padding-left: 20px;
    }
}

@media (max-width:800px) {
    h2 {
        margin: 3% 0;
    }
    p {
        margin: 3% 0;
        line-height: 160%;
    }
    .subline {
        margin: -3% 0 20px 0;
    }
    .section_ctn,
    .section_ctn_reverse {
        width: 80%;
        margin: 3% auto;
        flex-direction: column;
        align-items: flex-start;
        overflow: hidden;
    }
    .section_ctn:has(.software_main_1_img) {
        overflow: visible;
    }
    .index_section_ctn,
    .index_section_ctn_reverse {
        width: 100%;
        margin: 3% auto;
        flex-direction: column;
        align-items: flex-start;
        overflow: hidden;
    }
    .section_ctn > .main_container,
    .section_ctn_reverse > .main_container {
        width: 100%;
    }
    .section_h2,
    .index_section_ctn .section_subline,
    .index_section_ctn_reverse .section_subline {
        width: 100%;
    }
    .section_ctn h2,
    .section_ctn_reverse h2 {
        margin: 3% 0;
        text-align: left;
    }
    .index_section_ctn .section_subline .subline,
    .index_section_ctn_reverse .section_subline .subline {
        margin: 0 0 20px 0;
        text-align: left;
    }
    .section_ctn .section_text,
    .section_ctn_reverse .section_text,
    .index_section_ctn .section_text,
    .index_section_ctn_reverse .section_text {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    section ul,
    .main_content_text ul,
    .main_content_text_wide ul {
        margin: 1rem 0 1rem 15px;
    }
    section ul li,
    .main_content_text ul li,
    .main_content_text_wide ul li {
        padding-left: 6px;
        line-height: 155%;
    }
    .section_btn_ctn_start,
    .section_btn_ctn_end  {
        width: 80%;
        display: flex;
        justify-content: center;
    }
    .section_btn {
        width: 70%;
        margin-bottom: 20px;
        background-color: var(--secondary-text-color);
        color: var(--primary-text-color);
        font-size: clamp(0.8rem, 0.4vw + 0.5rem, 1rem);
        font-weight: 600;
        box-shadow:
            inset 0 0 5px var(--primary-text-color),
            inset 2px 0 5px var(--primary-text-color),
            inset -5px 0 5px var(--secondary-text-color),
            0 0 5px var(--primary-text-color),
            -5px 0 10px var(--secondary-text-color),
            5px 0 10px var(--secondary-text-color);
    }
    .site_btn {
        width: 80%;
        margin: 0.8rem 0 0.2rem;
        font-size: clamp(0.8rem, 0.4vw + 0.5rem, 1rem);
        font-weight: 600;
    }
    .main_content {
        padding: 0;
        flex-direction: column;
        gap: 25px;
    }
    .main_content_reverse {
        margin-top: 3%;
        flex-direction: column-reverse;
        gap: 25px;
    }
    .main_content_text,
    .main_content_text_wide {
        width: 100%;
        margin: 0 0 0 0;
    }
    .card {
        width: 80%;
        height: 60vh;
    }
    .card_header h2 {
        text-align: center;
    }
    .card_btn {
        margin: auto;
        margin-bottom: 20px;
        background-color: var(--secondary-text-color);
        font-size: clamp(0.8rem, 0.4vw + 0.5rem, 1rem);
        font-weight: 600;
        border: none;
    }
    .feature_cards_ctn,
    .cards_sm_ctn,
    .inventar_cards_sm_ctn {
        grid-template-columns: minmax(0, 90%);
        gap: 1rem;
    }
    .card_sm {
        width: 80%;
    }
    .feature_card_content ul {
        margin: 0 20px 5% 10px;
    }
    .card_content ul li,
    .feature_card_content ul li {
        line-height: 150%;
        padding-left: 10px;
    }
}

@media (max-width:600px) {
    .site_btn {
        width: 91%;
    }
    .card {
        position: sticky;
        top: 60px;
        min-width: 98%;
        height: 60vh;
        margin: 1px;
    }
    .card_content ul {
        margin: 3% 15px;
    }
    .card_content ul li {
        padding-left: 8px;
    }
    .card_btn {
        margin-bottom: 12px;
    }
}

@media (max-width:480px) {
    section ul {
        padding: 3% 6px 3% 15px;
    }
    .section_btn_ctn_start,
    .section_btn_ctn_end  {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .section_btn {
        width: 90%;
     }
    .card_btn {                      /*Button in der Card*/
        width: 85%;
    }
    .site_btn {
        width: 98%;
    }
    .card {
        height: 70vh;
    }
    .card_content ul {
        padding: 2% 1px;
    }
    .feature_cards_ctn,
    .cards_sm_ctn,
    .inventar_cards_sm_ctn {
        grid-template-columns: minmax(0, 100%);
    }
    .card_sm {
        width: 90%;
        margin-top: 1rem;
    }

    .feature_card_content ul {
        margin: 0 15px 5% 5px;
        padding: 1px 1px 1px 8px;
    }
    .feature_card_content ul li {
        padding-left: 1px;
    }
    .feature_card .card_btn {
        width: 80%;
    }
}
