﻿/* teilweise an ChatGPT angelehnt*/
#art{
    text-align: center;
}

#art .registerroletoggle {
    justify-content: center;
}

#art .registerroletoggle > div {
    margin: 0 auto;
}

#contactbox h2 {
    margin: 0 0 8px;
}

#contactbox p {
    margin: 6px 0;
    line-height: 1.35;
}

#favorite{
    width: 20px;
    height: auto;
    margin-left: 8px;
}

#logoh{
    width: 80px;
    height: auto;
    max-width: 80px;
    padding-left: 20px;
    margin-right: 2.5rem;
    cursor: pointer;
}

#neu {
    margin-top: 15px;
    display: block;
    text-align: center;
}

#neu a {
    margin-left: 6px;
}

#schuelerformp h2,
#unternehmenformp h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

#schuelerformp,
#unternehmenformp,
.fileupload,
#contactbox {
    flex: 1;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: var(--radius-2);
    background: var(--surface);
    padding: 24px;
    max-width: 680px;
    margin: 0 auto 18px;
    box-shadow: var(--shadow-2);
    border-left: 6px solid var(--blue-700);
}

#title{
    text-align: center;
    flex-grow: 1;
    margin: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

h1 {
    text-align: center;
    margin-bottom: 14px;
}

.loginbox h1 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.badge{
    background: #eef2ff;
    color: var(--blue-700);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #dbe1ff;
}

.bewerbungsabschnitt{
    border: 1px solid var(--line);
    background-color: var(--surface);
    padding: 1rem 1.25rem;
    margin-bottom: 14px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.bigcard{
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-2);
    padding: 12px 14px;
    box-shadow: var(--shadow-1);
}

.bigcard h4{
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.bigcard p{
    margin: 0 0 8px;
    color: #6b7280;
    font-size: 0.98rem;
}

.box {
    width: 250px;
    height: 38px;
    padding: 8px 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
}

.btndelete {
    background-color: var(--red-600);
}

.btndelete:hover {
    background-color: var(--red-700);
}

.btnpublish {
    background-color: var(--blue-700);
}

.btnpublish:hover {
    background-color: var(--blue-600);
}

.card{
    border: 1px solid var(--line);
    background-color: var(--surface);
    padding: .9rem;
    border-radius: var(--radius-1);
    box-shadow: var(--shadow-1);
}

.card > .header{
    margin-bottom: .25rem;
}

.card > body{
    font-size: .8rem;
    color: #777;
}

.cardgrid{
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.categories {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 18px;
    background: var(--surface-2);
    border-radius: var(--radius-2);
    border: 1px solid var(--line);
}

.category {
    border-radius: 10px;
    box-shadow: var(--shadow-1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    padding: 14px 16px;
    color: white;
}

.category:hover {
    transform: translateY(-2px);
    background-color: var(--blue-600);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.category:nth-child(1) {
    background: var(--blue-700);
}

.category:nth-child(2) {
    background: var(--blue-700);
}

.category:nth-child(3) {
    background: #46002e;
}

.ctarow{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detaillist{
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.detailrow{
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 12px;
    align-items: start;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-weight: 400;
}

.detailrow dd{
    margin: 0;
    font-weight: 400;
    color: var(--ink-700);
    line-height: 1.45;
}

.detailrow dt{
    margin: 0;
    font-weight: 600;
    color: var(--ink-900);
}

.detailscontent {
    margin-top: 10px;
}

.empty {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    margin: 10px 0;
    border: 1px dashed var(--line);
    border-radius: var(--radius-2);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    color: var(--ink-700);
}

.empty::before{
    content: "-";
    font-weight: 700;
    color: var(--blue-700);
}

.entwurfactions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.entwurfactions form {
    flex: 1;
    margin: 0;
}

.favoritebtns{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px;
    margin-top: 18px;
    margin-bottom: 22px;
}

.favoritebtns .filtertogglebtn {
    margin-left: auto;
}

.favoritebtns > div {
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.filtergroup {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.filtergroup label {
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}

.filterinput {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background: var(--surface);
}

.filterinput:focus {
    outline: none;
    border-color: var(--blue-700);
    box-shadow: 0 0 4px rgba(12, 19, 136, 0.2);
}

.filternoresults {
    padding: 16px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    text-align: center;
    font-weight: 500;
    margin-top: 10px;
}

.filterreset {
    background-color: #46002e;
    color: white;
    padding: 10px 16px;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.filterreset:hover {
    background-color: #8B2D30;
}

.filtersection h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--blue-700);
}

.filtersectionhidden {
    display: none;
}

.fristhint {
    opacity: .7;
}

.filtertogglebtn:hover {
    background-color: var(--blue-600);
}

.filtertoolbar {
    display: flex;
    justify-content: flex-end;
    margin: 6px 0 4px;
}

.hero{
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-2);
    padding: 16px 18px;
    box-shadow: var(--shadow-1);
}

.hero h3{
    margin: 0 0 6px;
}

.hero p{
    margin: 0 0 10px;
    color: #4b5563;
}

.herostats{
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-content: start;
}

.hide{
    display: none !important;
}

.homecontent{
    display: flex;
    flex-direction: column;
    gap: 36px;
    min-height: 60vh;
    align-items: stretch;
    min-width: 0;
    font-size: 1.05rem;
}

.howto{
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-2);
    padding: 14px 16px;
    box-shadow: var(--shadow-1);
    margin-top: 12px;
}

.howtogrid{
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 8px;
}

.howtostep{
    background: var(--surface-2);
    border-radius: var(--radius-2);
    padding: 12px 14px;
    border: 1px solid var(--line);
    font-size: 0.98rem;
}

.informations a {
    color: #46002e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.informations a:hover {
    color: #8B2D30;
    text-decoration: underline;
}

.informations h2 {
    color: #0c1388;
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
    border-bottom: 2px solid #0c1388;
    padding-bottom: 8px;
}

.informations h3 {
    color: #0c1388;
    font-size: 26px;
    margin-bottom: 12px;
    font-weight: 700;
}

.informations p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.informations ul {
    margin-left: 20px;
    margin-bottom: 16px;
    color: #333;
}

.informations ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.inputlabel{
    display: block;
    padding: 12px 14px;
    border: 2px dashed #999;
    border-radius: 10px;
    cursor: pointer;
    margin: 8px 0;
    user-select: none;
    min-height: 20px;
}

.inputlabel:hover{
    border-color:#333;
    background:#f4f4f4;
}

.layout{
    margin: 0 auto 0 0;
    gap: 16px;
    display: flex;
    flex-direction: column;
}

.loginbox {
    background-color:#fff;
    padding: 20px 28px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: auto;
    min-width: 500px;
}

.maincontent {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mainlayout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 18px;
    align-items: stretch;
    padding: 0;
    min-height: calc(100vh - 120px);
}

.mainlayout > *{
    min-width: 0;
}

.mainlayout.mainlayoutfull{
    grid-template-columns: 1fr;
}

.metaitem{
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-1);
    padding: 10px 12px;
    box-shadow: var(--shadow-1);
    display: grid;
    gap: 4px;
}

.metalabel{
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-500);
}

.metavalue{
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-900);
}

.praktikabadges{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.praktikaabschnitt, .unternehmenabschnitt{
    border: 1px solid var(--line);
    border-left: 6px solid #46002e;
    background-color: var(--surface);
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: var(--radius-2);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
    box-sizing: border-box;
    display: block;
}

.praktikadetail{
    border: 1px solid var(--line);
    border-left: 6px solid #46002e;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 18px;
    border-radius: var(--radius-2);
    box-shadow: var(--shadow-2);
    display: grid;
    gap: 16px;
}

.praktikaheader{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.praktikaheader h3{
    margin: 0 0 6px;
    font-size: 22px;
}

.praktikalead{
    margin: 0;
    color: var(--ink-700);
    line-height: 1.45;
}

.praktikameta{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.praktikasection{
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-1);
    padding: 12px 14px;
    box-shadow: var(--shadow-1);
}

.praktikasection h4{
    margin: 0 0 6px;
    font-size: 15px;
}

.praktikasection p{
    margin: 0;
    color: var(--ink-700);
    line-height: 1.45;
}

.praktikasections{
    display: grid;
    gap: 10px;
}

.passwordfieldwrap {
    position: relative;
}

.passwordtoggleicon {
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.profile{
    display: flex;
    min-height: 100vh;
    align-items: flex-start;
    gap: 15px;
}

.profile.profileschueler{
    gap: 8px;
}

.profile.profileschueler #schuelerformp,
.profile.profileschueler .fileupload {
    margin-bottom: 10px;
}

.profile.profileunternehmen{
    gap: 8px;
}

.profile.profileunternehmen #unternehmenformp,
.profile.profileunternehmen #contactbox {
    margin-bottom: 10px;
}

.rechtlich{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 0;
    color: var(--ink-500);
}

.search{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    margin-bottom: 8px;
}

.searchsuggestions{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .5rem;
    margin-top: .75rem;
}

.sectionhead{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.sectionhead .filtertoolbar{
    margin: 0;
}

.sectionhead a{
    color: var(--blue-700);
    text-decoration: none;
    font-weight: 600;
}

.sectionhead h3{
    margin: 0;
    font-size: 1.2rem;
}

.statusnote {
    border-radius: 8px;
    padding: 10px;
}

.studentnotetop {
    margin-top: 6px;
}

.sidecard{
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius-2);
    padding: 14px 16px;
    box-shadow: var(--shadow-1);
    display: grid;
    gap: 8px;
}

.sidecard.active,
.sidecard[aria-current="page"]{
    background: #eef2ff;
    border-color: #dbe1ff;
}

.sidecard h4{
    margin: 0;
    font-size: 15px;
}

.sidecard p{
    margin: 0;
    color: var(--ink-700);
    line-height: 1.4;
    font-size: 13px;
}

.sideicon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.sideiconimg{
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.sidelink{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-900);
    font-weight: 600;
    text-align: left;
    box-shadow: var(--shadow-1);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidelink.active,
.sidelink[aria-current="page"],
.sidelink.alt{
    background: #eef2ff;
    border-color: #dbe1ff;
}

.sidelink.active:hover,
.sidelink[aria-current="page"]:hover,
.sidelink.alt:hover{
    background: #eef2ff;
    border-color: #dbe1ff;
}

.sidelink:active{
    background: #eef2ff;
    border-color: #dbe1ff;
}

.sidelink:hover{
    transform: translateY(-2px);
    border-color: #c7d2fe;
    box-shadow: var(--shadow-2);
    background: var(--surface);
    color: var(--ink-900);
}

.sidelinks{
    display: grid;
    gap: 16px;
}

.sidelinktitle{
    font-size: 15px;
}

.sidemenu {
    position: sticky;
    top: 0;
    align-self: stretch;
}

.sidemenufilled{
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px;
    border-radius: var(--radius-2);
    border: 1px solid var(--line);
    background:
    radial-gradient(80% 80% at 0% 0%, #f1f4ff 0%, rgba(241, 244, 255, 0) 60%),
    var(--surface-2);
    box-shadow: var(--shadow-1);
}

.sidemeta{
    font-size: 12px;
    font-weight: 700;
    color: var(--blue-700);
    background: #e6ebff;
    padding: 2px 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 24px;
    line-height: 1;
}

.sidesection{
    display: grid;
    gap: 8px;
}

.sidesub{
    margin: 0;
    color: var(--ink-500);
    font-size: 14px;
    line-height: 1.35;
}

.sidetitle{
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-900);
}

.stat{
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-2);
    padding: 12px 14px;
    box-shadow: var(--shadow-1);
}

.statlabel{
    color: #6b7280;
    font-size: 14px;
}

.statnumber{
    font-size: 22px;
    font-weight: 700;
}

.stellenabschnitt{
    border: 1px solid var(--line);
    border-radius: var(--radius-1);
    padding: 12px;
    min-height: 0;
    box-sizing: border-box;
    background: var(--surface);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
    font-size: 14px;
}

.stellenabschnitt .mini{
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 8px;
    width: auto;
}

.stellenabschnitt h3{
    margin: 0 0 6px;
    font-size: 18px;
}

.stellenabschnitt p{
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--ink-700);
}

.tag{
    background: #eef2f7;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
}

.tagrow{
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.top{
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    column-gap: 8px;
    margin-top: 0;
    margin-bottom: 16px;
    min-height: 92px;
    padding: 0;
    overflow: hidden;
    background-color: var(--surface-2);
    border-bottom: 1px solid var(--line);
}

.top #logoh {
    justify-self: start;
    margin-right: 0;
}

.top #title {
    grid-column: 2;
    width: 100%;
    padding: 0 8px;
    text-align: center;
    flex-grow: 0;
}

.top #logoutbutton,
.top > button {
    position: static;
    inset: auto;
    justify-self: end;
    height: 100%;
    margin: 0;
    width: auto;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    color: var(--ink-900);
    font-weight: 700;
    border: 1px solid var(--line);
    border-top: 0;
    border-bottom: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
}

.top #logoutbutton:hover,
.top > button:hover {
    background: var(--blue-600);
    color: #fff;
    border-color: var(--blue-700);
    box-shadow: none;
    transform: none;
}

.top::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--blue-700);
    opacity: 0.9;
}

.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px 0;
}

.wrappermain {
    min-height: 100vh;
    max-width: 100%;
    margin: 0;
    margin-top: 0;
    padding: 0;
    background: var(--surface);
    border-radius: 0;
    box-shadow: var(--shadow-2);
}

.wrappermain > :not(.top) {
    padding: 0 24px 16px;
}

/*
.error {
    color: red;
    text-align: center;
    margin-top: 10px;
}

/* Aktiv / ausgewählt */
.favoritebtns .selected{
    background: var(--blue-700);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(12, 19, 136, 0.25);
}

/* Basis für alle Buttons */
.favoritebtns button{
    border: 0;
    padding: 10px 18px;
    border-radius: 999px;        /* bleibt schön rund */
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* Filter Section Styles */
.filtersection {
    background-color: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-2);
    padding: 14px 16px;
    margin-bottom: 16px;
    animation: slideDown 0.3s ease;
    box-shadow: var(--shadow-1);
}

/* Filter Toggle Button */
.filtertogglebtn {
    padding: 10px 16px;
    background-color: var(--blue-700);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

/* Hover Effekt */
.favoritebtns .notsel:hover{
    background: rgba(0,0,0,0.05);
}

/* Information Pages Styling */
.informations {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff;
    border-radius: 0;
}

/* Nicht ausgewählt */
.favoritebtns .notsel{
    background: transparent;
    color: #495057;              /* dunkler Text für Kontrast */
}

/* responsive shit
*/
@media (max-width: 780px) {
    .category {
        width: 100%;
    }
}

/* Tighter internal spacing and font sizing for compactness */
#schuelerformp input,
#unternehmenformp input,
.fileupload input,
#contactbox p,
#contactbox input {
    font-size: 15px;
}

/*ende*/
details[open] {
    border-color: #46002e;
    box-shadow: var(--shadow-2);
}

/*gpt*/
details summary .summarycontent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

:root {
    --blue-700: #0c1388;
    --blue-600: #1622a3;
    --red-600: #D11A2A;
    --red-700: #B61422;
    --ink-900: #0f172a;
    --ink-700: #334155;
    --ink-500: #64748b;
    --surface: #ffffff;
    --surface-2: #f3f5f9;
    --line: #e2e8f0;
    --shadow-1: 0 6px 16px rgba(15, 23, 42, 0.08);
    --shadow-2: 0 12px 28px rgba(15, 23, 42, 0.12);
    --radius-1: 10px;
    --radius-2: 14px;
}

@keyframes detailsFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1000px) {
    .stellencontainer {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .mainlayout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .sidemenu {
        position: static;
    }

    .wrappermain > :not(.top) {
        padding: 0 16px 14px;
    }

    .profile {
        flex-direction: column;
    }

    #schuelerformp,
    #unternehmenformp,
    .fileupload,
    #contactbox {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .wrappermain > :not(.top) {
        padding: 0 10px 12px;
    }

    .top {
        grid-template-columns: 1fr 1fr 1fr;
        align-items: center;
    }

    #title {
        font-size: 1rem;
    }

    .favoritebtns {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .favoritebtns > div {
        width: 100%;
        justify-content: stretch;
    }

    .favoritebtns button {
        flex: 1;
        min-width: 0;
        padding: 10px 12px;
    }

    .favoritebtns .filtertogglebtn {
        width: 100%;
    }

    .sidelink {
        padding: 11px 12px;
    }

    .searchsuggestions {
        grid-template-columns: 1fr;
    }

    .praktikaabschnitt,
    .unternehmenabschnitt,
    .praktikadetail {
        padding: 12px;
    }
}

@media (max-width: 600px) {
    .stellencontainer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .wrapper {
        padding: 14px 10px;
        min-height: auto;
    }

    .loginbox {
        width: 100%;
        min-width: 0;
        max-width: 640px;
        padding: 16px;
    }

    .box {
        width: 100%;
    }

    .top {
        min-height: auto;
        padding: 10px 12px;
        gap: 8px;
    }

    #logoh {
        width: 62px;
        max-width: 62px;
        padding-left: 0;
        margin-right: 0;
    }

    #title {
        font-size: 1.15rem;
        padding: 0 6px;
    }

    .top #logoutbutton,
    .top > button {
        position: static;
        height: auto;
        padding: 8px 12px;
        border: 1px solid var(--line);
        border-radius: 10px;
    }

    .sidemenufilled {
        gap: 14px;
        padding: 14px;
    }

    .sidelinks {
        gap: 10px;
    }

    .maincontent {
        padding-bottom: 6px;
    }

    .favoritebtns {
        flex-wrap: wrap;
        margin-top: 12px;
        margin-bottom: 14px;
    }

    .favoritebtns .filtertogglebtn {
        margin-left: 0;
        width: auto;
    }

    .search input[type="search"],
    input[type="search"] {
        font-size: 1rem;
    }

    .praktikaheader {
        gap: 10px;
    }

    .praktikameta {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    #schuelerformp,
    #unternehmenformp,
    .fileupload,
    #contactbox {
        padding: 16px;
    }

    .rechtlich {
        flex-wrap: wrap;
        row-gap: 4px;
    }

    .informations {
        padding: 24px 14px;
    }
}

@media (max-width: 900px){
    .hero{ grid-template-columns: 1fr; }
    .cardgrid{ grid-template-columns: 1fr; }
    .howtogrid{ grid-template-columns: 1fr; }
}

@media (min-width: 1000px) {
    /* on wide screens, center forms and limit width further */
    #schuelerformp, #unternehmenformp, .fileupload, #contactbox {
        max-width: 540px;
    }
}

body {
    height: 100%;
    background: linear-gradient(180deg, #f7f8fb 0%, #eef1f7 100%);
    color: var(--ink-900);
    padding: 0;
    margin: 0;
    font-family: "Poppins", "Trebuchet MS", "Segoe UI", sans-serif;
}

button {
    width: 100%;
    padding: 10px 20px;
    background-color: var(--blue-700);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(12, 19, 136, 0.18);
}

button.cta{
    width: auto;            /* wichtig wegen deinem globalen button{width:100%} */
    padding: 10px 14px;
    border-radius: 10px;
}

button.cta.secondary{
    background: #eef2ff;
    color: var(--blue-700);
}

button.mini{
    width: auto;
    padding: 8px 12px;
    border-radius: 10px;
}

button:hover {
    background-color: var(--blue-600);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(12, 19, 136, 0.25);
}

details summary {
    cursor: pointer;
    list-style: none;
    content: "+";
}

details summary .favoriticon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 15px;
}

details.praktikaabschnitt summary h4{
    font-size: 22px;
    margin: 0 0 4px;
}

details[open] .details {
    animation: detailsFade 0.24s ease;
}

footer {
    background-color: var(--surface-2);
    margin: 0;
    padding: 12px 0;
    border-top: 0;
}

html{
    height: 100%;
}

input[type="search"]{
    width: 100%;
    padding: .6rem .75rem;
    font-size: 1.25rem;
    border: 2px solid var(--line);
    border-radius: .5rem;
    background: var(--surface);
}

input[type="text"], input[type="password"], input[type="email"] {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}
