{
box-sizing: border-box;
}

body {
margin: 0;
font-family: Arial, sans-serif;
background: #fffdf5;
color: #222;
}

.container {
width: 92%;
max-width: 1200px;
margin: auto;
}

/* =========================
HEADER
========================= */

.header {
background: #ffffff;
border-bottom: 4px solid #f5c400;
position: sticky;
top: 0;
z-index: 100;
}

.header-content {
min-height: 75px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
}

.logo {
text-decoration: none;
color: #222;
font-size: 22px;
font-weight: bold;
}

/* =========================
NAVIGATION
========================= */

nav a {
text-decoration: none;
color: #222;
font-weight: 600;
padding: 10px;
}

nav a {
color: #c49b00;
}

/* =========================
SELECT
========================= */

select {
padding: 10px 14px;
border: 2px solid #f5c400;
border-radius: 8px;
background: #ffffff;
font-size: 15px;
cursor: pointer;
}

/* =========================
BURGER
========================= */

#menu-button {
display: none;
border: none;
background: transparent;
font-size: 30px;
cursor: pointer;
padding: 5px 10px;
color: #222;
}

/* =========================
MOBILES MENÜ
========================= */

#mobile-menu {
background: #ffffff;
}

#mobile-menu a {
text-decoration: none;
color: #222;
font-weight: 600;
}

#mobile-menu a {
color: #c49b00;
}

#mobile-menu.hidden {
display: none;
}

/* =========================
HERO
========================= */

.hero {
margin-top: 30px;
padding: 50px 30px;
background: #f5c400;
border-radius: 18px;
text-align: center;
color: #222;
}

.hero h1 {
margin-top: 0;
font-size: 36px;
}

/* =========================
SUCHE
========================= */

.search {
margin: 25px 0;
display: flex;
gap: 10px;
}

.search input {
flex: 1;
padding: 15px;
border: 2px solid #eeeeee;
border-radius: 10px;
background: white;
font-size: 16px;
}

.search input {
outline: none;
border-color: #f5c400;
}

/* =========================
BUTTONS
========================= */

.button {
display: inline-block;
padding: 12px 18px;
border: none;
border-radius: 9px;
background: #f5c400;
color: #222;
text-decoration: none;
font-weight: bold;
cursor: pointer;
}

.button {
background: #ffd633;
}

.secondary {
margin-top: 15px;
}

.phone {
margin-top: 20px;
}

/* =========================
TOP BAR
========================= */

.top-bar {
display: flex;
justify-content: space-between;
align-items: center;
margin: 30px 0 20px;
}

/* =========================
KARTEN
========================= */

.grid {
display: grid;
grid-template-columns: repeat(
auto-fill,
minmax(250px, 1fr)
);
gap: 20px;
}

.card {
background: #ffffff;
border-radius: 14px;
overflow: hidden;
border: 1px solid #eeeeee;
box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.card img {
width: 100%;
height: 210px;
object-fit: cover;
display: block;
}

.card-body {
padding: 18px;
}

.card h3 {
margin-top: 0;
}

.car {
color: #777;
}

.price {
display: block;
margin-top: 15px;
font-size: 20px;
font-weight: bold;
color: #b18a00;
}

/* =========================
KEIN FOTO
========================= */

.no-photo {
height: 210px;
display: flex;
align-items: center;
justify-content: center;
background: #fff8d6;
color: #777;
}

.no-photo.large {
height: 450px;
}

/* =========================
FORMULAR
========================= */

.form-container {
max-width: 700px;
margin: 40px auto;
padding: 30px;
background: white;
border-radius: 15px;
border-top: 5px solid #f5c400;
}

.form-container form {
display: flex;
flex-direction: column;
gap: 10px;
}

.form-container label {
margin-top: 10px;
font-weight: bold;
}

.form-container input,
.form-container select,
.form-container textarea {
width: 100%;
padding: 13px;
border: 1px solid #ccc;
border-radius: 8px;
font-size: 16px;
}

.form-container input,
.form-container textarea,
.form-container select {
outline: none;
border: 2px solid #f5c400;
}

.form-container button {
margin-top: 20px;
}

/* =========================
FOTO-VORSCHAU
========================= */

#preview-container {
margin-top: 15px;
}

#preview {
max-width: 100%;
max-height: 350px;
border-radius: 10px;
}

/* =========================
DETAILSEITE
========================= */

.detail-container {
margin: 35px 0;
}

.back {
display: inline-block;
margin-bottom: 20px;
color: #333;
text-decoration: none;
}

.detail-card {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
padding: 30px;
background: white;
border-radius: 15px;
border-top: 5px solid #f5c400;
}

.detail-image img {
width: 100%;
max-height: 500px;
object-fit: contain;
border-radius: 10px;
}

.detail-info h1 {
margin-top: 0;
font-size: 32px;
}

.seller {
color: #666;
margin: 15px 0;
}

.price-big {
font-size: 30px;
font-weight: bold;
margin: 20px 0;
color: #b18a00;
}

.information {
padding: 15px;
background: #fffdf0;
border-radius: 10px;
border: 1px solid #f5c400;
}

.description {
line-height: 1.6;
}

/* =========================
LÖSCHEN
========================= */

.delete-button {
margin-top: 20px;
padding: 10px 15px;
border: none;
border-radius: 8px;
background: #eeeeee;
cursor: pointer;
}

.delete-button {
background: #dddddd;
}

/* =========================
NACHRICHT
========================= */

.message {
margin-top: 20px;
padding: 15px;
background: #fff3b0;
border-left: 5px solid #f5c400;
border-radius: 8px;
}

/* =========================
LEERE SEITE
========================= */

.empty {
margin: 50px 0;
padding: 50px;
background: white;
text-align: center;
border-radius: 15px;
}

/* =========================
FOOTER
========================= */

footer {
margin-top: 60px;
padding: 30px 0;
background: white;
border-top: 4px solid #f5c400;
}

/* =========================
HANDY
========================= */

@media (max-width: 767px) {

.header-content {
    min-height: 65px;
    flex-direction: row;
    padding: 10px 0;
}

.logo {
    font-size: 17px;
    max-width: 80%;
}

.header-content nav {
    display: none;
}

#menu-button {
    display: block;
    margin-left: auto;
    font-size: 30px;
    line-height: 1;
}

#mobile-menu {
    width: 92%;
    margin: 0 auto 10px;
    padding: 10px 0 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#mobile-menu.hidden {
    display: none;
}

#mobile-menu a {
    display: block;
    width: 100%;
    padding: 12px 10px;
}

#mobile-menu select {
    width: 100%;
    margin-top: 5px;
}

.hero {
    padding: 30px 15px;
}

.hero h1 {
    font-size: 27px;
}

.search {
    flex-direction: column;
}

.top-bar {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
}

.detail-card {
    grid-template-columns: 1fr;
    padding: 15px;
}

.detail-info h1 {
    font-size: 25px;
}

.form-container {
    margin: 25px auto;
    padding: 20px;
}

}

/* =========================
SEHR KLEINE HANDYS
========================= */

@media (max-width: 400px) {

.logo {
    font-size: 15px;
}

#menu-button {
    font-size: 27px;
}

.container {
    width: 94%;
}

}