/*
 * SOE-COPYRIGHT-DISCLAIMER
 * Copyright (c) 2026 Schiffswerft Otto Eberhardt GmbH
 * Lange Strasse 10, 24399 Arnis
 * Author: Henning Peter Eberhardt
 * Alle Rechte vorbehalten.
 *
 * Nutzung, Vervielfaeltigung, Bearbeitung, Verbreitung oder Weitergabe dieser
 * Software (ganz oder teilweise) ist ohne vorherige ausdrueckliche schriftliche
 * Zustimmung des Rechteinhabers unzulaessig.
 *
 * Haftungsausschluss:
 * Diese Software wird "wie besehen" ohne ausdrueckliche oder stillschweigende
 * Gewaehrleistung bereitgestellt. Soweit gesetzlich zulaessig, wird jede Haftung,
 * insbesondere fuer direkte, indirekte, zufaellige oder Folgeschaeden, ausgeschlossen.
 */

@import url('https://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic');

/* General Styles */
body {
    font-size: 14px;
    font-weight: normal;
    font-style: normal;
    line-height: 1.5;
    background: #ffffff;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    border-top: 10px solid;
}

a:link, a:visited {
    text-decoration: none;
}

a:hover, a:active, a:focus {
    text-decoration: none;
}

#main a {
    text-decoration: underline;
}

#main a:hover {
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -1px;
    margin: 0;
}

h1 {
    font-size: 35px;
    line-height: 140%;
    margin-bottom: 14px;
}

h2 {
    font-size: 28px;
    line-height: 130%;
    margin-bottom: 10px;
}

h3 {
    font-size: 21px;
    line-height: 130%;
    margin-bottom: 8px;
}

h4 {
    font-size: 17px;
    font-weight: bold;
    line-height: 125%;
    margin-bottom: 8px;
}

h5 {
    font-size: 14px;
    font-weight: bold;
    line-height: 120%;
    margin-bottom: 8px;
}

h1 a, h2 a, h3 a, h4 a, h5 a {
    font-weight: inherit;
    text-decoration: none;
}

p {
    margin: 0 0 20px 0;
}

body, input, textarea, select, a.button, fieldset legend {
    font-family: 'PT Sans', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Form Styles */
form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    margin: 20px auto;
    z-index: 1000;       /* höher als die Tastatur! */
}

table {
    width: 100%;
    border-spacing: 0;
    margin: 10px 0;
}

tr {
    background-color: #f9f9f9;
    border-bottom: 1px solid #ededed;
}

tr:nth-child(odd) {
    background-color: #f4f4f4;
    border-bottom: 1px solid #ebebeb;
}

td {
    padding: 1px;
    border: none;
    vertical-align: middle;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.hidden-label {
    display: none;
}

input[type="text"],
input[type="number"],
input[type="decimal"],
input[type="date"],
input[type="email"],
input[type="tel"] {
    width: calc(100% - 20px);
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 5px;
    font-size: 18px;
}

input[type="checkbox"] {
    transform: scale(1.5);
    margin-top: 10px;
}

button[type="button"] {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 4px;
}

button[type="button"]:hover {
    background-color: #0056b3;
}

button[type="submit"] {
    width: 100%;
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
}

button[type="submit"]:hover {
    background-color: #218838;
}

#end_date {
    font-weight: bold;
    color: #333;
}

td button[type="button"] {
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="decimal"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.hidden {
    display: none;
}

.input-group {
    display: flex;
    align-items: center;
}
.input-group button {
    margin: 0;
}

button:disabled {
    background-color: grey;
    cursor: not-allowed;
}

.button-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.vessel-type-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px;
    flex: 1;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s ease;
    text-align: center;
}

.vessel-type-button:hover {
    background-color: #0056b3;
}

.vessel-type-button:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Radio styles */
input[type="radio"] {
    display: none;
}

input[type="radio"] + label {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

input[type="radio"]:checked + label {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

input[type="radio"] + label:hover {
    background-color: #f0f0f0;
}

/* Select styles */
select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 18px;
    margin-top: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

/* Space between inputs and buttons */
input,
select,
textarea {
    margin-bottom: 20px;
}

/* Steps container styles */
.steps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}
.step-group {
    display: inline-flex;
    align-items: center;
}
.step-group button {
    margin: 0 0.3rem;
    padding: 0.5rem 0.8rem;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
}
.step-group button:hover {
    background-color: #0056b3;
}
.step-group button:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

/* Media Queries for Mobile Devices */
@media only screen and (max-width: 600px) {
    input[type="text"],
    input[type="number"],
    input[type="decimal"],
    input[type="date"],
    input[type="email"],
    input[type="tel"],
    select {
        width: 100%;
        padding: 25px;
        font-size: 24px;
    }
    
    button[type="button"],
    button[type="submit"] {
        font-size: 24px;
        padding: 20px;
    }
  
    form {
        padding: 30px;
    }
}
