* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 60%;
    margin: 0 auto;
}

header {
    background: #333;
    color: white;
    padding: 20px 0;
    border-bottom: 4px solid #ED1B24;
}

header .container {
    text-align: center;
}
header h1 {
    text-align: center;
    font-family: "Times New Roman", serif;
    border-bottom: 1px solid #fff;
    margin: 0 auto;
    display: inline-block;
    text-transform: uppercase;
    font-size: 2.25em;
}
header h2 {
    font-family: "Times New Roman", serif;
    text-transform: uppercase;
    font-size: 1.65em;
    margin-bottom: 10px;
}

nav ul {
    list-style: none;
    text-align: center;
    padding: 20px 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition-duration: 1s;
}
nav ul li a:hover {
    color: #ED1B24;
    transition-duration: 1s;
}

section {
    padding: 40px 0;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
}
h3 {
  /*  color: #ED1B24; */
}
#team h3 {
    color: #333;
}

ul {
    list-style: none;
    padding-left: 25px;
    padding-bottom: 35px;
}
ul li {
    padding-bottom: 35px;
    margin-bottom: 35px;
}
.section ul li {
    border-bottom: 1px solid #ED1B24;
}
.section ul li:last-of-type {
    border-bottom: none;
}
li ul {
    list-style: circle;
    padding: 10px 0 10px 25px;
}
li ul li {
    margin-bottom: 5px;
}
#team {
    padding-bottom: 50px;
}
a {
    color: #ED1B24;
    transition-duration: 1s;
    text-decoration: none;
}
a:hover {
    color: #555;
    transition-duration: 1s;
    text-decoration: underline;
}

#team, #kontakt {
    display: flex;
}
.team-member {
    float:left;
    width: 31.3333%;
    margin: 20px 1%;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-height: 140px;
}
.team-member img {
    max-width: 100%;
    height: auto;
}

.kontaktblock {
    float:left;
    width: 48%;
    margin: 20px 1%;
    padding: 25px 30px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    min-height: 130px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

label {
    font-weight: bold;
}

input, textarea {
    padding: 10px;
    font-size: 16px;
    width: 100%;
}

button {
    padding: 10px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}


@media all and (max-width:991px) {
    .container {
        width: 90%;
    }

    .team-member {
        margin: 20px 0;
        width: 100%;
    }

    .kontaktblock {
        width: 100%;
        margin: 20px 0;
    }
}

@media all and (max-width:767px) {
    header h1 {
        font-size: 1.55em;
    }

    header h2 {
        font-size: 1.25em;
        margin-bottom: 10px;
    }
    ul {
        padding-left: 0px;
    }
}


@media all and (max-width:479px) {
    header h1 {
        font-size: 1.25em;
    }

    header h2 {
        font-size: 1.05em;
        margin-bottom: 10px;
    }
}